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

Implement elementary bond featurizers #463

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

sveccham
Copy link
Collaborator


Implemented elementary bond featurizers like bond type, bond conjugation, and bond stereochemistry.

  • Implemented elementary bond featurizers: BondTypeFeaturizer, BondConjugationFeaturizer, BondStereochemistryFeaturizer
  • These featurizers can be used to featurize bonds in a molecule for usage in graph neural networks
  • from bionemo.geometric.bond_featurizers import BondTypeFeaturizer

Usage

from bionemo.geometric.bond_featurizers import BondTypeFeaturizer
btf = BondTypeFeaturizer()
m = Chem.MolFromSmiles("C=C")
print(btf.get_features(m.GetBondWithIdx(1)))

Testing

How do you prove that your code behaves the way you claim?

Tests for these changes can be run via:

pytest tests/bionemo/geometric/test_bond_featurizers.py

@sveccham
Copy link
Collaborator Author

/build-ci

@sveccham sveccham marked this pull request as ready for review November 21, 2024 19:55
@sveccham sveccham requested a review from scal444 November 21, 2024 20:07
@sveccham sveccham self-assigned this Nov 21, 2024
Copy link
Collaborator

@scal444 scal444 left a comment

Choose a reason for hiding this comment

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

The additions here from the other PR are good - other comments from that PR apply here if we figure out a good solution

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