Skip to content

Commit a9fef1a

Browse files
committed
merge
2 parents 91c69bc + 81904be commit a9fef1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Example/test_fingerprint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99
from PyFingerprint.fingerprint import get_fingerprint, get_fingerprints
1010

11-
cdktypes = ['standard', 'extended', 'graph', 'maccs', 'pubchem', 'estate', 'hybridization', 'lingo', 'klekota-roth', 'shortestpath', 'cdk-substructure', 'circular', 'atompairs', 'signature']
11+
cdktypes = ['standard', 'extended', 'graph', 'maccs', 'pubchem', 'estate', 'hybridization', 'lingo', 'klekota-roth', 'shortestpath', 'cdk-substructure', 'circular', 'cdk-atompairs', 'signature']
1212
rdktypes = ['rdkit', 'morgan', 'rdk-maccs', 'topological-torsion', 'avalon', 'atom-pair', 'rdk-descriptor']
1313
babeltypes = ['fp2', 'fp3', 'fp4', 'spectrophore']
1414
vectypes = ['mol2vec']
@@ -48,4 +48,4 @@
4848

4949
output_np = output.copy()
5050
for k, fps in output.items():
51-
output_np[k] = np.array([fp.to_numpy() for fp in fps])
51+
output_np[k] = np.array([fp.to_numpy() for fp in fps])

PyFingerprint/rdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def calcDescriptors(mol):
2929
def rdk_fingerprint(smi, fp_type="rdkit", depth=None, size=None):
3030

3131
mol = Chem.MolFromSmiles(smi)
32-
mol = Chem.AddHs(mol)
32+
mol = Chem.RemoveHs(mol)
3333

3434
if not depth == None:
3535
if fp_type == "avalon":

0 commit comments

Comments
 (0)