samtools mpileup to bcftools mpileup
I got
samtools mpileup option `u` is functional, but deprecated. Please switch to using bcftools mpileup in future.
How could I convert the following commands to bcftools mpileup ?
samtools mpileup -uf QMg-NbQ3P-RN.fasta aln_P1O1.sorted.bam | bcftools view -bvcg - > P1O1_var.raw.bcf
bcftools view P1O1_var.raw.bcf | vcfutils.pl varFilter -D100 > P1O1_var.flt.vcf
Thank you in advance.
• 10,166 views
•
link
1 answer
Hello Ric ,
first make sure you have the latest version of samtools and bcftools.
$ bcftools mpileup -Ou QMg-NbQ3P-RN.fasta aln_P1O1.sorted.bam | bcftools call -Ou -mv | bcftools norm -Ou -f QMg-NbQ3P-RN.fasta | bcftools view -e 'FORMAT/DP > 100' > P1O1_var.flt.vcf
- The
bcftools viewcommand you showed was only used forbcftoolsversion < 1 and is replaced bybcftools call - I recommend to normalize your indel variants, that's why I added a
bcftools normstep - For removing variants with read depth greater 100 I used
bcftools view
fin swimmer
• 1 views
•
link
Log in to answer this question.