We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbe2f3 commit 1cb9f1eCopy full SHA for 1cb9f1e
src/objtools/validator/tax_validation_and_cleanup.cpp
@@ -1335,8 +1335,12 @@ void CTaxValidationAndCleanup::ListTaxLookupErrors
1335
}
1336
if (org.IsSetLineage()) {
1337
string org_lineage = org.GetLineage();
1338
- if (! NStr::IsBlank(org_lineage) && NStr::Find(org_lineage, "Bacteria; Cyanobacteriota") != NPOS) {
1339
- is_cyanobacteria = true;
+ if (! NStr::IsBlank(org_lineage)) {
+ // check old and new lineages to avoid false positives
1340
+ if (NStr::Find(org_lineage, "Bacteria; Cyanobacteriota") != NPOS ||
1341
+ NStr::Find(org_lineage, "Bacteria; Bacillati; Cyanobacteriota") != NPOS) {
1342
+ is_cyanobacteria = true;
1343
+ }
1344
1345
1346
0 commit comments