Skip to content

Coordinate Conventions

tdanford edited this page Nov 14, 2014 · 2 revisions

Design Decisions for Coordinate Conventions

Conventions for genomic coordinates are a often-debated topic in some areas of bioinformatics. There are (essentially) three design axes for a simple 1-D coordinate system:

  1. 'space' vs 'residue' coordinates: Is it the bases themselves that are numbered? Or the 'spaces' between the bases that are numbered?
  2. 0- vs. 1-based numbering schemes: do you start counting at 0 or 1?
  3. closed- vs. half-open ranges: essentially, when we give a range of "10 to 20", are we talking about 10 bases or 11?

As it turns out, the "closed vs. half-open ranges" question doesn't make much sense in the context of space coordinates -- so in the end, we have three design decisions and 7 possible design options for a genomic coordinate system. Needless to say, every single one of these options has been chosen by some bioinformatics platform, tool, or file-format released in the wild today.

ADAM Conventions

Here in ADAM, we have (somewhat arbitrarily) chosen the following genomic coordinate conventions:

  1. residue coordinates: we number the residues themselves, not the spaces between them.
  2. 0-based counting: we start at 0.
  3. half-open ranges: "[0, 10]" indicates a region which is 10 bases long.

Strand Indications

Some systems allow the use of ordering in a coordinate-pair to give an implicit strand indicator, for regions which are located on a specific strand. For example, "0,10" would indicate a region on the positive (Watson) strand while "10,0" would indicate the same region on the negative (Crick) strand. Generally this happens with people who are using 0-based space-coordinates, since this convention interacts poorly with half-open intervals.

However, the ADAM project will never do this -- where there is the need to indicate a strand, we include a (possibly optional) strand field, or its equivalent, and put the strand information there. Many of our classes will enforce the constraint that start <= end

Clone this wiki locally