Skip to content

Commit

Permalink
Update to 0.2.1:
Browse files Browse the repository at this point in the history
bugfix for circular fingerprints.
  • Loading branch information
Xiangyan93 committed Dec 9, 2023
1 parent 3a23ad6 commit a9b9fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mgktools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# -*- coding: utf-8 -*-


__version__ = '0.2.0'
__version__ = '0.2.1'
5 changes: 2 additions & 3 deletions mgktools/features_mol/features_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ def morgan_counts_features_generator(self, mol: Union[str, Chem.Mol]) -> np.ndar

return features

@staticmethod
def circular_features_generator(mol: Union[str, Chem.Mol]) -> np.ndarray:
circular_fp_featurizer = deepchem.feat.CircularFingerprint(size=2048, radius=8,
def circular_features_generator(self, mol: Union[str, Chem.Mol]) -> np.ndarray:
circular_fp_featurizer = deepchem.feat.CircularFingerprint(size=self.num_bits, radius=self.radius,
sparse=False, smiles=True)
features = circular_fp_featurizer.featurize([mol]).ravel()
return features
Expand Down

0 comments on commit a9b9fd1

Please sign in to comment.