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

Fix frag_utils.compute_distance_and_angle #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rkakamilan
Copy link

This PR fixes the following bug in the preparation of fragment data.

With rdkit>=2021.9.1, linker_matches in frag_utils.compute_distance_and_angle with smi_linker="" becomes an empty list becausemol.GetSubstructMatches(Chem.MolFromSmiles(""), uniquify=False) only returns (). As a result, frag_utils.compute_distance_and_angle with smi_linker="" doesn't give valid distance/angle.

@hannahbruce
Copy link

Thanks - this fix worked for me!

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