Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check molecule consists of a single fragment and has no queries #120

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

diogomart
Copy link
Contributor

Fixes #118

diogomart added 2 commits May 18, 2024 17:34
improves over ba15b7d
which was a fix for a specific type of query that addressed
#62
@diogomart
Copy link
Contributor Author

Added commit to raise error for rdkit mols with queries.
Earlier, a fix for a specific type of query reported in #62 was implemented in 3091839
Other types of queries have been observed in SD files (aka SDF) from PDBBind.
This added commit (3091839) is a general "solution".

@diogomart diogomart changed the title check molecule consists of a single fragment check molecule consists of a single fragment and has no queries May 31, 2024
@diogomart diogomart requested a review from psharma-sr August 2, 2024 17:27
@@ -1615,6 +1615,10 @@ def from_mol(
if mol.GetNumConformers() > 1 and conformer_id == -1:
msg = "RDKit molecule has multiple conformers. Considering only the first one."
print(msg, file=sys.stderr)
if len(Chem.GetMolFrags(mol)) != 1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@diogomart
Copy link
Contributor Author

Thanks @nbruciaferri!

@diogomart diogomart merged commit 2b026f2 into develop Aug 20, 2024
1 check passed
@diogomart diogomart deleted the check_fragments branch August 20, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants