Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #206 from ga4gh-beacon/sabela-issue_202
Browse files Browse the repository at this point in the history
Clarify that end is exclusive #202
  • Loading branch information
juhtornr authored Aug 14, 2018
2 parents 81b7e40 + de624c0 commit 5691a72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before_install:
# This setup will not be needed once the online version of validator-badge supports OAS 3.0. Until then we'll need to set up a local version. Since there isn't a release supporting OAS 3.0 yet, we unfortunately need to build some snapshot dependencies. These steps should be gradually removed as releases come out.

# build swagger-core
- git clone --branch=2.0 https://github.com/swagger-api/swagger-core.git
- git clone --branch=v2.0.2 https://github.com/swagger-api/swagger-core.git
- cd swagger-core
- git reset --hard 5336adb9945cfdf6eddbb61f15b28a1509e0b267
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
Expand Down
5 changes: 3 additions & 2 deletions beacon.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Beacon API Specification v1.0.0

Beacon is a web service for genetic data sharing. Beacon permits simple queries regarding the presence or absence of a specified variant in a given dataset. This is the key idea behind Beacon, by allowing these queries Beacon makes the data discoverable. If the user finds their variant(s) of interest, Beacon will point them to the appropriate place to gain access to the data (e.g. the European Genome-Phenome Archive, EGA).
Expand Down Expand Up @@ -256,10 +257,10 @@ An example `GET` request and response to the info endpoint:
|*referenceName**|Reference name (chromosome). Accepting values 1-22, X, Y so follows Ensembl chromosome naming convention.|string|`'1'`|
|*referenceBases**|Reference bases for this variant (starting from `start`). Accepted values: [ACGT]* When querying for variants without specific base alterations (e.g. imprecise structural variants with separate `variantType` as well as `startMin` & `endMin` ... parameters), the use of a single "N" value is required.<br/>See the REF field in [VCF 4.2 specification](https://samtools.github.io/hts-specs/VCFv4.2.pdf).|string|`'G'`|
|*assemblyId* *|Assembly identifier|string|`'GRCh38'`|
|start~|<p>* `start` only:<br />- for single positions, e.g. the start of a specified sequence alteration where the size is given through the specified `alternateBases`<br />- typical use are queries for SNV and small InDels<br />- the use of `start` without an `end` parameter requires the use of `referenceBases`<br />* `start` and `end`:<br /> - special use case for exactly determined structural changes |integer|`345233`|
|start~|Precise start coordinate position, allele locus (0-based, inclusive).<p>* `start` only:<br />- for single positions, e.g. the start of a specified sequence alteration where the size is given through the specified `alternateBases`<br />- typical use are queries for SNV and small InDels<br />- the use of `start` without an `end` parameter requires the use of `referenceBases`<br />* `start` and `end`:<br /> - special use case for exactly determined structural changes |integer|`345233`|
|startMin~|Minimum start coordinate<br />* `startMin` + `startMax` + `endMin` + `endMax`:<br />- for querying imprecise positions (e.g. identifying all structural variants starting anywhere between `startMin` <-> `startMax`, and ending anywhere between `endMin` <-> `endMax`<br />- single or double sided precise matches can be achieved by setting `startMin` = `startMax` OR `endMin` = `endMax`<br/> <br/>For more information on range querys, see: [Beacon-Querys](https://github.com/ga4gh-beacon/specification/wiki/Beacon-Queries#range-queries-and-structural-variants)|integer|`23433`|
|startMax|Maximum start coordinate. See `startMin`.|integer|`23450`|
|end|Precise end coordinate. See `start`.|integer|`455635`|
|end|Precise end coordinate (0-based, exclusive). See `start`.|integer|`455635`|
|endMin|Minimum end coordinate. See `startMin`.|integer|`23500`|
|endMax|Maximum end coordinate. See `startMin`.|integer|`23520`|
|alternateBases~|The bases that appear instead of the reference bases. Accepted values: [ACGT]* or N.<br /> <br/>Symbolic ALT alleles (DEL, INS, DUP, INV, CNV, DUP:TANDEM, DEL:ME, INS:ME) will be represented in `variantType`.<br/> <br/> See the ALT field in [VCF 4.2 specification](https://samtools.github.io/hts-specs/VCFv4.2.pdf)<br/> <br/>*Either `alternateBases` OR `variantType` is REQUIRED*|string|`'A'`, `'AGATAC'`|
Expand Down
4 changes: 2 additions & 2 deletions beacon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ paths:
$ref: '#/components/schemas/Chromosome'
- name: start
description: |
Precise start coordinate position, allele locus (0-based).
Precise start coordinate position, allele locus (0-based, inclusive).
* start only:
- for single positions, e.g. the start of a specified sequence alteration where the size is given through the specified alternateBases
- typical use are queries for SNV and small InDels
Expand Down Expand Up @@ -68,7 +68,7 @@ paths:
type: string
- name: end
description: |
Precise end coordinate. See start.
Precise end coordinate (0-based, exclusive). See start.
in: query
schema:
type: string
Expand Down

0 comments on commit 5691a72

Please sign in to comment.