Entering edit mode
3.6 years ago
Info.shi
▴
30
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.
Generating consensus sequence from bam file
How to get consensus sequences in FASTA format from BAM
create consensus sequence from bam file
How To Generate A Consensus Fasta Sequence From Sam Tools Pileup?
etc.
I think the "wearied characters" you are talking about are fastq quality score values. Note that
vcf2fq
outputs fastq, not fasta..