Skip to content

Commit 5f78ded

Browse files
committed
Don't open lookup if now tree is given
1 parent edfce38 commit 5f78ded

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/strucclustutils/structuremsa.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,11 @@ int structuremsa(int argc, const char **argv, const Command& command, bool preCl
15211521

15221522
par.printParameters(command.cmd, argc, argv, *command.params);
15231523

1524-
DBReader<unsigned int> seqDbrAA(par.db1.c_str(), par.db1Index.c_str(), par.threads, DBReader<unsigned int>::USE_INDEX|DBReader<unsigned int>::USE_DATA|DBReader<unsigned int>::USE_LOOKUP_REV);
1524+
int mode = DBReader<unsigned int>::USE_INDEX|DBReader<unsigned int>::USE_DATA;
1525+
if (par.guideTree != "") {
1526+
mode |= DBReader<unsigned int>::USE_LOOKUP_REV;
1527+
}
1528+
DBReader<unsigned int> seqDbrAA(par.db1.c_str(), par.db1Index.c_str(), par.threads, mode);
15251529
seqDbrAA.open(DBReader<unsigned int>::NOSORT);
15261530
DBReader<unsigned int> seqDbr3Di((par.db1+"_ss").c_str(), (par.db1+"_ss.index").c_str(), par.threads, DBReader<unsigned int>::USE_INDEX|DBReader<unsigned int>::USE_DATA);
15271531
seqDbr3Di.open(DBReader<unsigned int>::NOSORT);

0 commit comments

Comments
 (0)