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

Check if input BAM files are sorted by coordinate #19

Closed
tjakobi opened this issue Jul 27, 2016 · 0 comments
Closed

Check if input BAM files are sorted by coordinate #19

tjakobi opened this issue Jul 27, 2016 · 0 comments
Assignees
Labels

Comments

@tjakobi
Copy link
Contributor

tjakobi commented Jul 27, 2016

Currently DCC assumes the BAM files are sorted. In case they are not, pysam will eventually crash.

[bam_pileup_core] the input is not sorted (reads out of order) [bam_plp_destroy] memory leak: 1. Continue anyway.

@tjakobi tjakobi added the bug label Jul 27, 2016
@tjakobi tjakobi added this to the DCC version 0.4.4 milestone Jul 27, 2016
@tjakobi tjakobi self-assigned this Jul 27, 2016
tjakobi added a commit that referenced this issue Aug 5, 2016
DCC now checks if a) BAM files have an index and if so, b) if they are sorted. This is done by getting the first 100 read mapping positions and check if they are in order. Should be good enough for government use. DCC throws an user readable error message and exceptions should all be caught.
@tjakobi tjakobi closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant