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

fixed out-of-bounds error in CountNs annotation #6355

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Conversation

davidbenjamin
Copy link
Contributor

Closes #6336. @fleharty could you verify that this branch fixes the error and review? This uses code similar to other annotations that find an offset into a read's bases and are not buggy, as far as we know.

@fleharty
Copy link
Contributor

fleharty commented Jan 7, 2020

@davidbenjamin
The code looks great, can you add some tests. Perhaps add something that tests when the variant context is outside the read as well.

Some of the difficulties we are having now may have been prevented had we originally put in tests.

@davidbenjamin
Copy link
Contributor Author

Back to @fleharty

Copy link
Contributor

@fleharty fleharty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidbenjamin great, ty! I also ran this branch on the data that caused the problem, and this in fact fixes the issue.

@davidbenjamin davidbenjamin merged commit 9d76f0f into master Jan 15, 2020
@davidbenjamin davidbenjamin deleted the db_count_ns branch January 15, 2020 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArrayIndexOutOfBounds in CountNs Annotation for Mutect2
2 participants