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

Need help for quality filtering of indels #32

Open
jekim2022 opened this issue Jun 30, 2023 · 2 comments
Open

Need help for quality filtering of indels #32

jekim2022 opened this issue Jun 30, 2023 · 2 comments

Comments

@jekim2022
Copy link

In the article, I could find the Variant calling methods of SNVs and indels separately.
I found you called SNVs using SAMtools mpileup with mapping quality >20 and base quality >20, but I couldn't find any mapping quality or base quality filter conditions in the calling method of indels.

So I am asking if the calling of indels doesn't need mapping quality or base quality filters, and why it doesn't need unlike SNVs.

Thank you in advance

@douym
Copy link
Collaborator

douym commented Aug 25, 2023

Hi @jekim2022 ,

Thanks for your question and sorry for the delayed response. While calling indels (in the "ReadLevel_Features_extraction.py") I also used baseQ-related features and mapQ-related features (for example, "mapq_p", "baseq_p","mapq_difference", "ref_baseq1b_p", etc.).

In the pre-scan stage, for SNVs baseQ<20 or mapQ<20 are typically used to filter low-quality reads, but for indels it's not so direct to calculate baseQs of alternative alleles (i.e., for deletions, you cannot read the "baseQ" of mutant alleles from the bam file directly). You can definitely pre-filter reads with low mapQ if you would want to.

Best wishes,

Y.

@jekim2022
Copy link
Author

jekim2022 commented Aug 25, 2023 via email

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