Skip to content

Fix ligand from graphmol bug#145

Open
apayne97 wants to merge 2 commits intomainfrom
fix-ligand-from-graphmol-bug
Open

Fix ligand from graphmol bug#145
apayne97 wants to merge 2 commits intomainfrom
fix-ligand-from-graphmol-bug

Conversation

@apayne97
Copy link
Copy Markdown
Collaborator

@apayne97 apayne97 commented Apr 1, 2026

Description

While Ligand.from_oemol requires an OEMol input, the code mostly still works if provided an OEGraphMol object. Some API calls don't work, however - in particular NumConfs, as OEGraphMol objects can only have 1 conformer (whereas OEMol objects can have multiple). To preserve the ability to run Ligand.from_oemol with an OEGraphMol object, I've added a small test for this and made a small code to make sure that the .NumConfs method is only run with an OEMol object.

Status

  • Ready to go

Developers certificate of origin

@apayne97 apayne97 linked an issue Apr 1, 2026 that may be closed by this pull request
@apayne97 apayne97 requested a review from chrisiacovella April 1, 2026 19:47
@apayne97 apayne97 added bug Something isn't working quick For PRs that should be quick to review labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working quick For PRs that should be quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Ligand from OEGraphMol bug

1 participant