Skip to content

Commit

Permalink
Merge commit 'c621f8bceb8d879263c1249b2939bab7af4f3e57'
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jan 5, 2025
2 parents 85b3dcb + c621f8b commit 9fbf02e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/mmseqs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ elseif (HAVE_S390X)
set(ZARCH 1 CACHE INTERNAL "")
endif ()

if (NATIVE_ARCH AND (MMSEQS_ARCH STREQUAL ""))
if (MMSEQS_ARCH)
set(NATIVE_ARCH 0 CACHE INTERNAL "")
endif ()

if (NATIVE_ARCH)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*|aarch64.*|AARCH64.*)")
set(ARM 1 CACHE INTERNAL "")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "PPC64*|ppc64*|powerpc64*")
Expand Down
1 change: 0 additions & 1 deletion lib/mmseqs/src/commons/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@ Parameters::Parameters():
// createindex workflow
createlinindex = combineList(kmerindexdb, extractorfs);
createlinindex = combineList(createlinindex, translatenucs);
createlinindex.push_back(&PARAM_REMOVE_TMP_FILES);
// linclust workflow
Expand Down
7 changes: 5 additions & 2 deletions lib/mmseqs/src/taxonomy/NcbiTaxonomy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
}
TaxonNode const *node = taxonNode(currTaxId, false);
if (node == NULL) {
Debug(Debug::ERROR) << "taxonid: " << currTaxId << " does not match a legal taxonomy node.\n";
EXIT(EXIT_FAILURE);
unassignedSeqs++;
continue;
}
totalAssignedSeqsWeights += currWeight;
assignedSeqs++;
Expand Down Expand Up @@ -707,6 +707,9 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
continue;
}
TaxonNode const *node = taxonNode(currTaxId, false);
if (node == NULL) {
continue;
}

// iterate all ancestors up to the root
TaxID currParentTaxId = node->parentTaxId;
Expand Down

0 comments on commit 9fbf02e

Please sign in to comment.