Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where data object locations do not follow de-facto scientific standard #12

Closed
mycql opened this issue Apr 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mycql
Copy link
Owner

mycql commented Apr 29, 2020

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
@mycql mycql self-assigned this Apr 29, 2020
@mycql mycql added the bug Something isn't working label Apr 29, 2020
@mycql mycql closed this as completed in 5d014e1 Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant