-
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
Inconsistency between ivar consensus and ivar variants #103
Comments
Just chiming in, did you see this in the user guide? "Note: Please use the -B options with samtools mpileup to call variants and generate consensus. When a reference sequence is supplied, the quality of the reference base is reduced to 0 (ASCII: !) in the mpileup output. Disabling BAQ with -B seems to fix this. This was tested in samtools 1.7 and 1.8." Perhaps this is related to the discrepancy you see here. Not sure why it would be inconsistent between |
We run into same issue of disparities between variants and consensus. Even with -B the same issue persists in some situations. |
@charlesfoster, yeah I've tried with and without the -B. The problem is the inconsistency between ivar consensus and ivar variants. In my experience looking at bam files, I think that the ivar variants calls are more accurate than what gets generated on the ivar consensus fasta file. @gkarthik, would it be possible to input the ivar variants output into ivar consensus? Thanks |
@IsabelFE what I've ended up doing in some circumstances now is taking the output of |
This might be related to #97 |
I already mentioned this in #85 (comment), but I am opening its own issue because I think this is a separate problem.
There is an inconsistency between ivar consensus and ivar variants results when the same settings are used:
The problem occurs around indels, for example based on the bam files on IGV it looks like there is and 4nts indel here:
.
When looking at the fasta files, both the sample.B_consensus.fa and sample.consensus.fa (with and without the flag -B) files have a 4nts indel. But when looking at the corresponding variant.tsv files, only the one with the -B flag identifies the indel.
The text was updated successfully, but these errors were encountered: