beacon_operations.variants_search
POST /g_variants
Search for variants
Authorizations
- None
Request Body
Schema for the Beacon request.
object
Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualParameters to limit the list of returned results.
object
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination to apply on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Filtering terms are the main means to select subsets of records from a Beacon response. While the name implies the application to a generated response, in practice implementations may apply them at the query stage. Note: In the processing of Beacon v2.0 requests multiple filters are assumed to be chained by the logical AND operator.
Filter results to include records that contain a specific ontology term.
object
Term ID to be queried, using CURIE syntax where possible.
HP:0002664Define if the Beacon should implement the ontology hierarchy,
thus query the descendant terms of id.
Allow the Beacon to return results which do not match the filter exactly, but do match to a certain degree of similarity. The Beacon defines the semantic similarity model implemented and how to apply the thresholds of ‘high’, ‘medium’ and ‘low’ similarity.
The entry type in the model to which the filter should be applied. For
example, the use of NCIT:C4013 (Malignant Head and Neck Neoplasm) can
w/o specified scope mean both “match cancer samples” or “match individuals”
with the disease” which - in the case of individuals - could then lead
to matching germline and cancer variants while a scope of biosamples
would limit the response to variants observed in the cancer tissue.
Note: It is good practice to avoid ambiguous terms, i.e. use different
vocabularies for different entry types.
Filter results based on operators and values applied to alphanumeric fields.
object
Field identfier to be queried.
ageOfOnsetDefines how the value relates to the field id.
>Alphanumeric search term to be used within the query which can contain wildcard characters (%) to denote any number of unknown characters. Values can be assocatied with units if applicable.
P70YThe entry type in the model to which the filter should be applied. It
is good practice to use unanimous id values (e.g. ageAtDiagnosis
instead of age) and avoid the use of the scope parameter.
Filter results to include records that contain a custom term defined by this Beacon.
object
Custom filter terms should contain a unique identifier.
demographic.ethnicity:asianThe entry type in the model to which the filter should be applied.
object
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Responses
200
Successful variant search operation.
Complete definition for a minimal response that provides only a Boolean exists true|false answer.
object
Set of handovers to be added in one section the response.
Requested schema to be used for individuals in the response.
object
Handover type, as an Ontology_term object with CURIE syntax for the id value. Use “CUSTOM:123455” CURIE-style id when no ontology is available.
object
Definition of an identifier in the CURIE prefix:local-part format which is the default type of e.g. ontology term id values (used e.g. for filters or external identifiers).
The text that describes the term. By default it could be the preferred text of the term, but is it acceptable to customize it for a clearer description and understanding of the term in an specific context.
[ { "id": "EDAM:2572", "label": "BAM" }, { "id": "EDAM:3016", "label": "VCF" }, { "id": "CUSTOM:pgxseg", "label": "genomic variants in .pgxseg file format" }]An optional text including considerations on the handover link provided.
This handover link provides access to a summarized VCF.URL endpoint to where the handover process could progress, in RFC3986 format
https://api.mygenomeservice.org/Handover/9dcc48d7-fc88-11e8-9110-b0c592dbf8c0/Placeholder to allow the Beacon to return any additional information that is necessary or could be of interest in relation to the query or the entry returned. It is recommended to encapsulate additional informations in this attribute instead of directly adding attributes at the same level than the others in order to avoid collision in the names of attributes in future versions of the specification.
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualBoolean (true/false) response section.
object
Indicator of whether any record was observed in any of the collections queried. This should be non-null.
Complete definition for a response that does not include record level details but provides Boolean and count information.
object
Set of handovers to be added in one section the response.
Requested schema to be used for individuals in the response.
object
Handover type, as an Ontology_term object with CURIE syntax for the id value. Use “CUSTOM:123455” CURIE-style id when no ontology is available.
object
Definition of an identifier in the CURIE prefix:local-part format which is the default type of e.g. ontology term id values (used e.g. for filters or external identifiers).
The text that describes the term. By default it could be the preferred text of the term, but is it acceptable to customize it for a clearer description and understanding of the term in an specific context.
[ { "id": "EDAM:2572", "label": "BAM" }, { "id": "EDAM:3016", "label": "VCF" }, { "id": "CUSTOM:pgxseg", "label": "genomic variants in .pgxseg file format" }]An optional text including considerations on the handover link provided.
This handover link provides access to a summarized VCF.URL endpoint to where the handover process could progress, in RFC3986 format
https://api.mygenomeservice.org/Handover/9dcc48d7-fc88-11e8-9110-b0c592dbf8c0/Placeholder to allow the Beacon to return any additional information that is necessary or could be of interest in relation to the query or the entry returned. It is recommended to encapsulate additional informations in this attribute instead of directly adding attributes at the same level than the others in order to avoid collision in the names of attributes in future versions of the specification.
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualPayload definition for the “count” response.
object
For counts with intentional (e.g. due to privacy concerns) or technical derived imprecision this parameter offers an option to declare the range or limits for the true results. If present, CountPrecision states the type of adjustment.
[ [ "1", "5" ], [ "<5" ]]For counts with intentional (e.g. due to privacy concerns) or technical derived imprecision this parameter offers an option to declare the number’s precision. If present, CountAdjustedTo provides more details. The 3 possible options are: - exact >- A value that is precise.
- imprecise >- A value that is not guaranteed to be precise.
- rounded >- A value that has been (floor or ceiling) rounded to a given value.
Indicator of whether any record was observed in any of the collections queried. This should be non-null.
Total number of results. NOT the number of results returned in this batch (after pagination) but the total obtained by the query.
[ 123]Beacon quick search result
object
Placeholder to allow the Beacon to return any additional information that is necessary or could be of interest in relation to the query or the entry returned. It is recommended to encapsulate additional informations in this attribute instead of directly adding attributes at the same level than the others in order to avoid collision in the names of attributes in future versions of the specification.
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualResult with initial estimated data and a link to full Beacon result
object
object
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualBeacon results summary section.
object
Indicator of whether any record was observed in any of the collections queried. This should be non-null.
Total number of results. NOT the number of results returned in this batch (after pagination) but the total obtained by the query.
[ 123]Result with initial estimated data and a link to full Beacon result
object
object
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualdefault
An unsuccessful operation.
object
Beacon-specific error.
object
Entry not found
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individual