This commit is contained in:
Brian Kelley
2021-03-05 22:36:14 -05:00
committed by GitHub
parent 8620083cf7
commit 198c7c60e5
2 changed files with 17 additions and 0 deletions

View File

@@ -115,6 +115,11 @@ bool query_needs_rings(const ROMol &in_query) {
if (atom->hasQuery()) {
if (describeQuery(atom).find("Ring") != std::string::npos) {
return true;
} else if (atom->getQuery()->getDescription() == "RecursiveStructure") {
auto *rsq = (RecursiveStructureQuery *)atom->getQuery();
if (query_needs_rings(*rsq->getQueryMol())) {
return true;
}
}
}
}