Skip to content

Commit dfc3dfb

Browse files
committed
small readme update, fix db creation from lists/sqla
1 parent ae61797 commit dfc3dfb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FPSim2/io/FPSim2_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def it_supplier(io_source, gen_ids, **kwargs):
226226
raise Exception('FPSim only supports integer ids for molecules, '
227227
'cosinder setting gen_ids=True when running '
228228
'create_db_file to autogenerate them.')
229-
mol_string = mol[0].strip()
229+
mol_string = mol[0]
230230
rdmol = load_molecule(mol_string)
231231
if rdmol:
232232
yield mol_id, rdmol

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ conda install -c efelix fpsim2
4444
### Create FP file
4545

4646
```python
47-
from FPSim2 import create_db_file
47+
from FPSim2.io import create_db_file
4848

4949
# from .smi file
5050
create_db_file('chembl.smi', 'chembl.h5', 'Morgan', {'radius': 2, 'nBits': 2048})
@@ -97,7 +97,7 @@ In case RDKit is not able to load a molecule, the id assigned to the molecule wi
9797
```python
9898
from FPSim2 import FPSim2Engine
9999

100-
fp_filename = 'chembl_24.h5'
100+
fp_filename = 'chembl_25.h5'
101101
query = 'CC(=O)Oc1ccccc1C(=O)O'
102102

103103
fpe = FPSim2Engine(fp_filename)
@@ -114,7 +114,7 @@ If you're searching against a huge dataset or you have small RAM, you can still
114114
```python
115115
from FPSim2 import FPSim2Engine
116116

117-
fp_filename = 'chembl_24.h5'
117+
fp_filename = 'chembl_25.h5'
118118
query = 'CC(=O)Oc1ccccc1C(=O)O'
119119

120120
fpe = FPSim2Engine(fp_filename, in_memory_fps=False)

0 commit comments

Comments
 (0)