Skip to content

Commit

Permalink
don't need to lookup id
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Jan 24, 2025
1 parent 106bb04 commit 139567d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/strucclustutils/structuremsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ void balanceTree(std::vector<AlnSimple>& hits, std::vector<size_t>& merges, int
}
}

std::string getHeader(unsigned int& key, IndexReader* hdrDb) {
size_t headerId = hdrDb->sequenceReader->getId(key);
std::string getHeader(unsigned int& headerId, IndexReader* hdrDb) {
// size_t headerId = hdrDb->sequenceReader->getId(key);
return Util::parseFastaHeader(hdrDb->sequenceReader->getData(headerId, 0));
}

Expand Down Expand Up @@ -1305,7 +1305,7 @@ int structuremsa(int argc, const char **argv, const Command& command, bool preCl

Debug(Debug::INFO) << "Optimising merge order\n";
balanceTree(hits, merges, sequenceCnt);

std::string nw = makeNewick(hits, sequenceCnt, &qdbrH);
std::string treeFile = par.filenames[par.filenames.size()-1] + ".nw";
Debug(Debug::INFO) << "Writing guide tree to: " << treeFile << '\n';
Expand Down Expand Up @@ -1392,7 +1392,6 @@ int structuremsa(int argc, const char **argv, const Command& command, bool preCl
for (size_t i = 0; i < merges.size(); i++) {
subMSAs.reserve(merges[i]);


#pragma omp for schedule(static, 1)
for (size_t j = 0; j < merges[i]; j++) {

Expand Down

0 comments on commit 139567d

Please sign in to comment.