This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Converting Blast Output To Sam Format

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

2 answers

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.

(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

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

Log in to answer this question.