-
-
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
Disagreement of results with samtools and bedtools #58
Comments
there are several other issues related to this. mosdepth does not double-count overlapping bases. bedtools does (I assume IGV does as well). For every issue like this one that has provided data, I have checked and never found a bug in mosdepth. mosdepth will often have lower depth than bedtools because bedtools double-counts overlapping bases--it may also use different include/exclude flags mosdepth will often have a higher depth than samtools depth, but samtools depth and samtools mpileup often do not agree even for identical parameters. |
Can we run mosdepth to double-count overlapping bases ? |
the next-release of mosdepth will have a mode that does not correct for mate-overlap. |
That would be really great. How soon can we expect this release ? |
The new release is out with |
I am a lillte confused, but I am sure you are right. |
this is only relevant when a read-pair from the same fragment (with same read-id) overlaps. |
Dear,
We have being testing the performance of mosdepth and we came across with some disagreement that we are not able to explain.
The mean depth (calculated with per-base file in ROI region) is below the value that we get with bedtools and samtools. These last two tools agree one to each other. To make sure that we are certainly adding the alignments that we want, first we select them with samtools view (-Q20 -F4).
The difference is bigger as the mean depth of the sample raises.
We have tuned the tool with the parameters of quality and the off of some bam flags with no success
For some reason, mosdepth does not sum certain aligmnents but we can't guess the criteria.
Can someone help us?
some of the results are:
In addition, we have checked the results base by base and the difference with respect to IGV is clear. The example shows a base that is 1165X and mosdepth output is 828X:
The text was updated successfully, but these errors were encountered: