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

use Ham's Naming Convention for Sequence Starts #15

Open
mgaldzic opened this issue Mar 16, 2011 · 0 comments
Open

use Ham's Naming Convention for Sequence Starts #15

mgaldzic opened this issue Mar 16, 2011 · 0 comments
Milestone

Comments

@mgaldzic
Copy link
Member

The issue is about 0 based and 1 based interval schemes.

  1. conventional annotation of nucleaotide sequences uses a 1 based, closed interval scheme
  2. but popular programming languages today use a 0 based, left-closed, right-open interval scheme
    Solution: distinguish the 0 based and 1 based interval scheme by using a different variable
    name for 1 based starts.

Example:
sequence = "aattccgga"
gb_start = 2
start = gb_start - 1 # this is optional, of course.
end = 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant