-
Notifications
You must be signed in to change notification settings - Fork 22
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
q_pos and r_pos indexing #11
Comments
Yes, I noticed this as well, and I agree that the 1-indexed printout of the query position is confusing, especially since the internal state variable Lines 446 to 458 in df1f7f4
As shown, the author explicitly is adding +1 to the query pos to make it print 1-indexed. |
Yes, you're correct. This is the expected behavior. Typically coordinates that are human readable are reported out as 1-based values. |
The outputs from alignment.dump() indicate a 1-indexed position number for the start and end of the matching region of the query and reference sequence. However, the output from alignment.r_pos and alignment.q_pos are 0-indexed. The output from alignment.r_end and alignment.q_end are the same as in the output from alignment.dum() and so appear to be 1-indexed. Is this expected behavior and output?
The text was updated successfully, but these errors were encountered: