I am trying to generate a consensus sequence from a sam file generated with bowtie2.
I tried samtools:
samtools mpileup -uf ref.fa aln.bam | bcftools view -cg - | vcfutils.pl vcf2fq > cns.fq
but when I visualise the sam file the consensus is calling the reference seq, not the sequenced base even though the coverage is ~ 20x.
Does anyone have any suggestions?
Thanks in advance,
Fiona