Converting Blast Output To Sam Format
2
5
Entering edit mode
12.2 years ago
Wen.Huang ★ 1.2k

Hi everybody,

I was wondering if there is a blast output parser that convert blast output to SAM format. There are many blast parser out there, but most for compressing results to more readable statistics. I would appreciate if anybody can point me to something that extracts the alignments.

Thanks!

blast sam parser • 13k views
ADD COMMENT
1
Entering edit mode

The NCBI seem to be working on adding SAM output to BLAST+ directly, see http://blastedbio.blogspot.co.uk/2015/07/ncbi-working-on-sam-output-from-blast.html

ADD REPLY
0
Entering edit mode
ADD REPLY
7
Entering edit mode
12.2 years ago

The samtools source distribution contains a file called misc/blast2sam.pl that can convert the output of earlier versions of blast (use a blast release from around 2007). In the meantime the blast output has changed in subtle (and undocumented) ways, Heng Li has stated that this blast converter is not being maintained to operate for current versions of blast.

ADD COMMENT
7
Entering edit mode
9.4 years ago

(2.8 years later:) I asked my student to write a blastn to sam converter. His C code is available at : https://github.com/guyduche/Blast2Bam

ADD COMMENT
1
Entering edit mode

awesome! there are so many BAM file visualizers out there and none (that I know of ) for BLAST output

ADD REPLY

Login before adding your answer.

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