samtools mpileup to bcftools mpileup
1
3
Entering edit mode
5.4 years ago
Ric ▴ 430

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.

SNP bcftools samtools • 9.0k views
ADD COMMENT
2
Entering edit mode
5.4 years ago

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 view command you showed was only used for bcftools version < 1 and is replaced by bcftools call
  • I recommend to normalize your indel variants, that's why I added a bcftools norm step
  • For removing variants with read depth greater 100 I used bcftools view

fin swimmer

ADD COMMENT

Login before adding your answer.

Traffic: 1963 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6