Extract Simple Alignment From Sam/Bam
1
3
Entering edit mode
12.3 years ago
Revh ▴ 60

Hi

I have annotated a number of RNA reads with the originating gene, and keep them in a bam file.

Now I want to extract a simple alignment for each gene from this sam file. I don't care about genomic location, quality of read or any other data. Only the aligned sequences corresponding to that gene. One alignment file (something like .aln) for each gene.

Any ideas on how to do that?

sam alignment • 3.7k views
ADD COMMENT
2
Entering edit mode

what about using an alignment viewer like IGV ?

ADD REPLY
3
Entering edit mode
12.3 years ago

I would actually suggest collecting the the reads and re-aligning against that gene using a Smith-Waterman implementation.

The Bio* packages have mature tools to display pairwise alignments - CIGAR is too goofy a format for this task.

ADD COMMENT
0
Entering edit mode

Thanks, I ended up doing just that.

ADD REPLY

Login before adding your answer.

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