Question: Converting Blast Output To Sam Format
gravatar for Wen.Huang
5.8 years ago by
Wen.Huang1.1k wrote:

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.


sam blast parser • 6.7k views
ADD COMMENTlink modified 3.0 years ago by Pierre Lindenbaum108k • written 5.8 years ago by Wen.Huang1.1k

The NCBI seem to be working on adding SAM output to BLAST+ directly, see

ADD REPLYlink written 2.8 years ago by Peter5.6k

ADD REPLYlink written 5.7 years ago by Rm7.7k
gravatar for Istvan Albert
5.8 years ago by
Istvan Albert ♦♦ 77k
University Park, USA
Istvan Albert ♦♦ 77k wrote:

The samtools source distribution contains a file called misc/ 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 COMMENTlink written 5.8 years ago by Istvan Albert ♦♦ 77k
gravatar for Pierre Lindenbaum
3.0 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum108k wrote:

(2.8 years later:) I asked my student to write a blastn to sam converter. His C code is available at :

ADD COMMENTlink written 3.0 years ago by Pierre Lindenbaum108k

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

ADD REPLYlink written 3.0 years ago by Istvan Albert ♦♦ 77k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 588 users visited in the last hour