This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to make consensus sequence from aligned reads ?

We already have sequence reads aligned to a reference genome. How can we extract the final reads that map to a specific gene? To make it clear I want to make a consensus sequence from the reads aligned to each gene. SAMTOOLS suggests the command:

samtools mpileup -uf ref.fa aln.bam | bcftools view -cg - | vcfutils.pl vcf2fq

But it gives many wearied characters after + sign of sequence.

I will thankful if anyone kindly guides me.

sequence transcriptome aligned consensus reads

0 answers

No answers yet.

Log in to answer this question.