Get full sequence from sorted bam file
1
0
Entering edit mode
6.5 years ago
wang.yiguan ▴ 10

Hi, I got an indexed and sorted bam file from a colleague, and I also have the reference genome. My question is: how can I get a full sequence (eg. fasta file) from the bam file?

I googled some tools, but most of them are used to convert bam file into fasta, and the fasta file still contains segments of reads. I do not want to have these reads, I want to have a whole sequence.

Appreciated it for your answers!

Assembly alignment sequencing • 1.7k views
ADD COMMENT
1
Entering edit mode
6.5 years ago
GenoMax 147k

You can create a consensus sequence from an aligned BAM file after calling SNP's. Basic procedure is described in this bcftools consensus help page.

ADD COMMENT
0
Entering edit mode

Thank you very much! Your suggestion works good for me!

ADD REPLY

Login before adding your answer.

Traffic: 1882 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