Skip to content

Fix frag_utils.compute_distance_and_angle#8

Open
rkakamilan wants to merge 2 commits into
oxpig:masterfrom
rkakamilan:fix/frag_utils
Open

Fix frag_utils.compute_distance_and_angle#8
rkakamilan wants to merge 2 commits into
oxpig:masterfrom
rkakamilan:fix/frag_utils

Conversation

@rkakamilan
Copy link
Copy Markdown

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
Copy Markdown

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