Standalone local Blast result
1
0
Entering edit mode
8.9 years ago
mirza ▴ 180

I used the following command line for local blast and it worked wonderfully. However, I have the following questions about this command

blastall -p blastn -i $QUERY -d $SUBJECT -b 10 -m 8 -a 8 > blast.out
  1. The result does not show any headings for the columns, e-value & score columns r easily identifiable but I don't understand the other results. How can I get the headings?
  2. It doesn't give the positives in percent, how to get it?
local-blast blast legacy-blast • 2.7k views
ADD COMMENT
2
Entering edit mode
8.9 years ago
Michael 55k

This legacy Blast, but the output format numbers are the same, the numbers of the output formats are not the same use -m 9 instead of -m 8 then you get the headers as comments (for each line of output!)

-m

alignment view options: 0 = pairwise, 1 = query-anchored showing identities, 2 = query-anchored no identities, 3 = flat query-anchored, show identities, 4 = flat query-anchored, no identities, 5 = query-anchored no identities and blunt ends, 6 = flat query-anchored, no identities and blunt ends, 7 = XML Blast output, 8 = tabular, 9 tabular with comment lines [Integer] default = 0

Also you might want to update to Blast+.

ADD COMMENT
0
Entering edit mode

thank you Michael. I'll try and let u know.

ADD REPLY
0
Entering edit mode

It worked, thank you so much :)

One more thing, say I am aiming only for the top 1 hit for every query sequence (-b), how to get the protein sequence simultaneously in the output, by modifying this command line?

ADD REPLY
0
Entering edit mode

As far as I'm aware you can not do so simultaneously. However, you can easily setup a simple loop to first run the blast search, parse out the top hit's accession ID, and extract the sequence using blastdbcmd (Which I assume exists for legacy blast).

ADD REPLY
0
Entering edit mode

That should be the way but I am not sure how to do that :( This may sound lame but I am a molecular biologist, not a hard core bioinformatics or computer science person, so can you help me here??

Is it possible to modify the first command line I have given and get the headers itself in the tab format??

ADD REPLY
2
Entering edit mode

You can build your custom output format including sequences using blast without any scripting, we have an answer by Istvan for this question already: A: Blast - Formatting Output

This answer is for Blast+, I'm not sure if legacy blast has a similar option, but here's another motivating factor to move on to the new blast.

These options allow you to retrieve only the aligned portions of the subject sequence, if you instead need the full sequences, export only the subject gi's then use

blastdbcmd -db <mydb> -entry_batch <my.blastoutput>

to retrieve the entries in fasta format from the db

ADD REPLY
0
Entering edit mode

Thank you so much Michael :)

ADD REPLY
0
Entering edit mode

Hi Michael,

can u plz help me with Interproscan5 also. I suppose u have used the tool. I asked this question

C: How to calculate the standalone interproscan output functionwise or domainwise?

ADD REPLY

Login before adding your answer.

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