Extract alignment in fasta format from BAM/SAM file
1
0
Entering edit mode
15 months ago
SaltedPork ▴ 170

Hi, I have a BAM file from aligning reads to a reference. What I would like is a fasta alignment file for each read showing the alignment between read and reference ie.

>read1

------A--C------GTATCTAGTCATGACT----------

Is there a tool/method that I can use that can extract the alignmments from a BAM and show in fasta format.

alignment bam • 864 views
ADD COMMENT
2
Entering edit mode
15 months ago

The tool sam2pairwise does what you need:

https://github.com/mlafave/sam2pairwise

ADD COMMENT

Login before adding your answer.

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