Hi people,
I have a set of reads mapped against a reference genome and need take consensus sequence using samtools mpileup. I used the command:
samtools mpileup -AuDS -Q 10 -q 10 -d 10000 -f <reference.fasta> <file.sorted.bam> | bcftools view -gc - | vcfutils.pl vcf2fq | perl fastq2fasta.pl cns.fasta &
Someone uses other parameters in samtools mpileup?
check this similar post: How to generate a consensus fasta sequence from SAM tools pileup?