Fix issue where data object locations do not follow de-facto scientific standard
Closed this issue · 0 comments
mycql commented
Scientific formats define locations for annotations as inclusive ranges of bp positions. Example given a 4 bp sequence, with cursor represented by '|':
|A|C|T|G|
1 2 3 4 5
- A is at position 1
- G is at position 4
Positions are 1-based. So if we were to refer to the whole sequence and annotate it,
then, start = 1 end = 4.
However, in terms of rendering, we're not only representing
until the cursor at base 4, but actually until the end of
it, which is actually the start of base 5. Hence we
offset all end positions by 1