-
Notifications
You must be signed in to change notification settings - Fork 29
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
Assumption made in code masked by earlier check. #42
Comments
Thanks for reporting this. Unfortunately, I don't understand yet. Could you explain more? |
is the assumption I am referring to. This could fail given an exotic data set.
is just one possibility if the data is not sorted by coordinate. |
Thanks for clarifying that. Would an assertion be a good approach?
Or just fixing the problem?
|
Depending on how robust you want the code to be you have a few options.
I haven't fully dissected the rest of this function to understand how this change would affect it otherwise I would just submit a pull request. Given my assumption of how the function handles these variables it should be able to handle my previous example as well as
or
|
It already handles
|
Unless the average quality of second is greater. |
This is super low priority but the code here assumes that the first read is the forward read and the second read is the reverse. Everywhere that this function is called ensures this but any new code that calls this function may not. This also assumes that the reverse read does not extend past the beginning of the forward read. This is dependent on the sequencing technique and may not be future proof.
The text was updated successfully, but these errors were encountered: