Molecule featurizers
RDkit2DDescriptorFeaturizer
Bases: BaseMoleculeFeaturizer
Class for featurizing molecule by computed RDkit descriptors.
Typical usage example: rdf = RDkit2DDescriptorFeaturizer() rdf(Chem.MolFromSmiles("CCO"))
Source code in bionemo/geometric/molecule_featurizers.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
n_dim: int
property
Returns dimensionality of the computed features.
__init__()
Initializes RDkit2DDescriptorFeaturizer class.
Source code in bionemo/geometric/molecule_featurizers.py
33 34 35 |
|
get_molecule_features(mol)
Returns features of the molecule.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mol
|
Mol
|
An RDkit Chem.Mol object |
required |
Returns: A torch.tensor representing RDkit-computed 2D descriptors of the molecule.
Source code in bionemo/geometric/molecule_featurizers.py
42 43 44 45 46 47 48 49 50 51 |
|