-
Notifications
You must be signed in to change notification settings - Fork 40
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
Deletions being incorporated into consensus genome when not expected #83
Comments
Hi @charlesfoster, I am having some similar issues. I described them in #85. Would you mind sharing what settings did you end up using for mpileup and ivar consensus/variants? Thanks |
Hi @IsabelFE, Different settings/what we're using For For Note: we still see issues with indel calling, as per the purpose of this Issue. I end up having to check the veracity of indels using IGV. Less than ideal. Using -B with --reference Other stuff Charles |
Thanks @charlesfoster, We also have issues with indel calling and I agree that double checking them in IGV is not ideal. I would really appreciate if anyone else have recommendations for ideal settings for mpileup and ivar variants/consensus for SARS-CoV-2 amplicon sequencing. Isabel |
Describe the bug
I'm working with SARS-CoV-2. I only want to incorporate indels into a variant call file with
ivar variants
and consensus genome generated withivar consensus
when a certain frequency of reads support the indel. I'm able to achieve this outcome withivar variants
using the-t
flag.For example, consider a situation where 24% of the reads support a 10-bp deletion, and the remaining 76% of the reads support the reference bases. If I use the following command:
samtools mpileup -A -d 0 -B -Q 0 --reference NC_045512.fasta sample_1.primertrim.sorted.bam | ivar variants -p sample_1.ivar -q 20 -t 0.25 -r NC_045512.fasta -g reference_features.gff3
Then the resulting sample_1.ivar.tsv file does not include a 10-bp deletion, as desired, because of the
-t 0.25
flag. However, the same does not hold true when calling the consensus genome. If I use the following command:samtools mpileup -aa -A -d 60000 -B -Q 0 --referenceNC_045512.fasta sample_1.primertrim.sorted.bam | ivar consensus -p sample_1.consensus -n N -t 0.25
Then the resulting sample_1.consensus.fa file does include the deletion, even though I would like it not to. Is this related to #79 ?
Expected behavior
I guess the expected behaviour would be to include the reference bases if enough reads support them, or to just include Ns for the stretch of the putative deletion.
Desktop (please complete the following information):
Additional context
Apologies if this isn't a bug and is just me misinterpreting the settings!
Cheers,
Charles
The text was updated successfully, but these errors were encountered: