Skip to content

Commit

Permalink
Misc fixes to representation code.
Browse files Browse the repository at this point in the history
  • Loading branch information
leojklarner committed Nov 2, 2023
1 parent 2186a83 commit 86b09cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gauche/representations/fingerprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def ecfp_fingerprints(
"""

rdkit_mols = [MolFromSmiles(s) for s in smiles]
fpgen = AllChem.GetMorganGenerator(radius=2)
fps = [fpgen.GetFingerprint(mol, bond_radius, nBits=nBits) for mol in rdkit_mols]
fpgen = AllChem.GetMorganGenerator(radius=bond_radius, fpSize=nBits)
fps = [fpgen.GetFingerprint(mol) for mol in rdkit_mols]
return np.array(fps)


Expand Down
3 changes: 2 additions & 1 deletion gauche/representations/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"""

from typing import List, Optional
import networkx


def molecular_graphs(
smiles: List[str], graphein_config: Optional[bool] = None
) -> List[networkx.MolecularGraph]:
) -> List:
"""
Convers a list of SMILES strings into molecular graphs
using the feautrisation utilities of graphein.
Expand Down

0 comments on commit 86b09cd

Please sign in to comment.