Is it possible to generate 2 different output formats (tabular and the default one) by running blastn just once or I have to either
1) Run it 2 times - one for each desired output
2) Generate the tabular one from the default one
Is it possible to generate 2 different output formats (tabular and the default one) by running blastn just once or I have to either
1) Run it 2 times - one for each desired output
2) Generate the tabular one from the default one
NCBI does already have a command-line application to interconvert BLAST result formats: blast_formatter
. You can use the -help flag for more information, or look at the manual.
The general idea is:
-outfmt 11
blast_formatter
to convert to your desired formatSee also the cookbook entry in the below quote for an example.
This application formats both local and remote BLAST results. An RID is required to format remote BLAST results. The RID may be obtained either from a search submitted to the NCBI BLAST web page or by using the –remote switch with one of the applications mentioned above. The blast_formatter accepts the BLAST archive format for stand-alone formatting. The BLAST archive format can be produced by using “-outfmt 11” argument with the stand-alone applications. For an example of how to use this application, please see its cookbook entry.
4.6.13.1 rid: BLAST RID of the report to be formatted.
4.6.13.2 archive: File produced by BLAST application using –outfmt 11
You could only use the XML format and transform it later to whatever you want using XSLT. For example, see this previous question on Biostar where the XML format was transformed to the native format for BLAST:
see also
The reason I need the tabular one is because I want to generate report with Krona (http://sourceforge.net/p/krona/home/krona/) and it turned out that some numbers which I see in a tabular file produced by Blast are absent in the XML output for the same file.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Try using the newest BLAST+ version.
Blastn says that 11 is out of range. Also by looking at blast_formatter options it seems it is able to change format only fore remote blast alignments since it is expecting a RID and I never saw an option for an input file?