-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
580 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# API: Beacon Responses | ||
|
||
The following is a list of standard Beacon responses supported by the `bycon` package. | ||
Responses for individual entities or endpoints are grouped by their Beacon framework | ||
response classes (e.g. `beaconResultsetsResponse` for `biosamples`, `g_variants` etc.).\n\n | ||
Please be reminded about the general syntax used in Beacon: A **path element** such | ||
as `/biosamples` corresponds to an entity (here `biosample`). Below these relations | ||
are indicated by the `@` symbol.\n\n | ||
|
||
!!! info "API Parameters" | ||
A complete list of parameters accepted by the API is provided on the [_Web and Command Line Parameters_](API-parameters.md) page. | ||
|
||
#### Schemas **{S}**, Tests **{T}** and Examples **{E}** | ||
Tests, examples and schemas are run from the server defined in this site's build instructions | ||
(see the `reference_server_url` entry in `mkdocs.yaml` file in the repository's root). | ||
|
||
{% | ||
include-markdown "generated/beacon-responses.md" | ||
%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# API: Web and Command Line Parameters | ||
|
||
## General API Parameters | ||
|
||
The `bycon` package supports number of parameters for filtering and querying the data which includes and extends | ||
standard Beacon parameters and can - depending on the parameter and the current scope - in general be | ||
invoked through HTTP requests and as command line arguments. | ||
|
||
Only parameters sefined in `config/argument_definitions.yaml` will be | ||
interpreted. | ||
|
||
Parameters are listed in `snake_case` format although for command line arguments | ||
(and also optionally web requests) `camelCase` versions are required (see the `cmdFlags`). | ||
|
||
|
||
{% | ||
include-markdown "generated/argument_definitions.md" | ||
%} | ||
|
||
## Services: Plot Parameters | ||
|
||
The `byconServices` package inside `bycon` provides a number of plotting functions which can be used to visualize the data in the database. Generally | ||
plot functionality is focussed on generating CNV visualizations for per-sample and | ||
aggregated CNV data (e.g. frequencyplots). Additionally some geographic map projectins are provided e.g. for samples and metadata. | ||
|
||
More information can be found on these pages: | ||
|
||
* plot documentation on [this page](plotting.md) | ||
|
||
{% | ||
include-markdown "generated/plot_defaults.md" | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# API: Beacon Services | ||
|
||
The _bycon_ environment provides a number of data services beyond typical Beacon | ||
functionality. These services can be loosely grouped into two major types: | ||
|
||
* services which extend Beacon formats, _i.e._ use Beacon concepts and query | ||
parameters but provide non-standard output | ||
- plotting functions | ||
- tabular and text output | ||
- aggregated data such as CNV frequencies (see [_intervalFrequencies_](services/intervalFrequencies.md)) | ||
* services which make use of utility function and data existing primarily for the | ||
support of Beacon functionality | ||
- ontology term cross mapping | ||
- geneId to location lookup | ||
- geographic location mapping and map projections (see [_geolocations_](services/geolocations.md)) | ||
- ISCN cytogenetic band mapping | ||
- publication data for cancer genome screening publications | ||
|
||
!!! info "API Parameters" | ||
A complete list of parameters accepted by the API is provided on the [_Web and Command Line Parameters_](API-parameters.md) page. | ||
|
||
## Response formats | ||
|
||
Standard responses are provided as `Content-Type: application/json`. The wrapper | ||
format is based on the Beacon v2 response format, with the data returned in the | ||
`results` array: | ||
|
||
``` | ||
meta: | ||
api_version: ... | ||
returned_schemas: [ ] | ||
response: | ||
exists: true | false | ||
info: { } | ||
resultSets: [ ] | ||
``` | ||
|
||
This (incomplete) example response may help with understanding the general | ||
format. Here, the data is a dictionary/object with a single key (`genes`): | ||
|
||
#### Request Example | ||
|
||
* <https://progenetix.org/services/genespans?geneId=CDKN2> | ||
|
||
## Plotting | ||
|
||
The `byconServices` package inside `bycon` provides a number of plotting functions which can be used to visualize the data in the database. Generally | ||
plot functionality is focussed on generating CNV visualizations for per-sample and | ||
aggregated CNV data (e.g. frequencyplots). Additionally some geographic map projectins are provided e.g. for samples and metadata. | ||
|
||
More information can be found in the plot documentation on [this page](plotting.md). | ||
|
||
## List of Services | ||
|
||
{% | ||
include-markdown "generated/beacon-services.md" | ||
%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.