- 1-based, closed
- 101–200
- 0-based, half-open
- [100, 200)
An address needs a reference
A genomic interval needs an assembly, a sequence name, and a coordinate convention. The same numerical address should not be assumed to identify the same sequence across assemblies. UCSC documents coordinate changes between assembly versions and provides tools for mapping intervals.
Sources: [1]
Two common coordinate conventions
In 1-based closed coordinates, the first base is 1 and both endpoints are included. The interval 101–200 spans 100 bases. In 0-based half-open coordinates, the first base is 0 and the end is excluded: [100, 200) describes the same 100 bases.
UCSC browser position strings use 1-based closed coordinates, while BED uses a 0-based start and an excluded end. Converting these conventions changes the start by one, not both endpoints.
Sources: [2]
Using coordinates in Polymer
Polymer documents its API interval convention as 1-based closed. Keep the assembly and interval attached when sharing a browser view or interpreting an overlap. When importing another format, check its specification rather than inferring its convention from how the numbers look.
Connections & tools
Related reading
Explore in Polymer
References
- Genome Browser FAQ: assemblies and releases UCSC Genome Browser · Official documentation
- Genome Browser FAQ: coordinate systems UCSC Genome Browser · Official documentation