-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Unsorted positions on sequence error #98
Comments
hi, can you share the bam file to re-create? the exons get sorted by mosdepth, so that shouldn't be the problem. and the 81 is referring to the chromosome/contig. |
Thanks for the reply. I'm processing the data for someone so I need to get the OK to share the bam file, but in the meantime is there a certain piece of the file that would be helpful to see? I can share the bam file's header with the contig information if that would help. |
if it helps, it should be sufficient just to share the alignments on the 81st contig (which should be a pretty small amount of data). You can do that by doing |
I'm able to share the reads from contig 81 in bam format. I sent you an email with the subsetted bam file. The error persists when running on this subsetted file |
I'm running into something similar and have traced it to the following coordinates (regions of interest) in my bed file which contains a overlapping coordinates, ie like this:
This results in the following error:
If I remove either of the first two regions, then it runs without error. If I reverse the order of the first two regions, it also errors, ie:
|
ok. this is helpful. i will have a look. |
And sorry I didn't mention, but this is |
no need. I fixed a bug in hts-nim that resolves this. I'll release 0.3.1 shortly thanks for reporting and for the test-case. |
new release here: https://github.com/brentp/mosdepth/releases/tag/v0.2.8 |
Thanks @brentp -- confirmed that v0.2.8 fixes this issue. Much appreciated! |
I'm trying to measure the exome coverage for a bam file I've recently processed with GATK. After downloading my BED file (all hg38 RefSeq exons) from the UCSC Table Browser, I'm running the following command
and encountering the following error
hg38.refseq.exons.bed
lines80-83
look like thisI'm not very familiar with BED files, so I'm having difficulty understanding the error message. I've already tried sorting my BED file with
bedtools sort
but that doesn't fix it. I also saw #22 and tried that solution but the same error still appears. Any idea what could be causing this error?Thanks!The text was updated successfully, but these errors were encountered: