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

d4tools create should not count deletion parts of reads when calculation coverage. #99

Open
ghuls opened this issue Jan 23, 2025 · 1 comment

Comments

@ghuls
Copy link
Contributor

ghuls commented Jan 23, 2025

d4tools create should not count deletion parts of reads (D parts of CIGAR string) when calculating coverage.

samtools depth excludes deletions by default (unless you specify -J) when calculating coverage.

-J           Include reads with deletions in depth computation
@brentp
Copy link
Collaborator

brentp commented Jan 23, 2025

Hi, as you've seen, d4 uses the entire read and does not consider cigar operations.
I'd likely accept a PR with tests to modify the code here

You can also use mosdepth with the --d4 option to get depth that considers cigar operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants