Merging blast databases
1
0
Entering edit mode
7.6 years ago
Joe 21k

Is it possible to merge 2 blast databases?

Say I want to query NR, but at the same time would like to query some sequences of my own that are not yet in nr (or lets say I'd published them by the local copy of nr was out of date and I don't want to download it all again).

I don't suppose it would be as simple as just concatenating the 2.

blast • 2.9k views
ADD COMMENT
0
Entering edit mode

how about running two blast queries for each database ?

ADD REPLY
1
Entering edit mode

That is not that good of an option, because that will not adjust the database size to the compound db size, therefore e-values will be incorrect and are incomparable, when you are in fact doing "single query in two passes". Making an alias will adjust to the new database size. Also, combining the blast output in some formats is not trivial.

ADD REPLY
0
Entering edit mode

That is currently what I'd be doing. I'm kinda after having all the results together in the same file. I could do the after the fact and merge the result files, but if it was possible to merge DBs that seemed preferable to begin with

ADD REPLY
1
Entering edit mode
7.6 years ago
Michael 55k

blastdb_aliastool is the command designed for this purpose. See its help pages. It is even easier than concatenating two files because there will be no third large compound file, but only the alias file.

ADD COMMENT
0
Entering edit mode

Ok great, I'll take a look - cheers!

ADD REPLY

Login before adding your answer.

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