Tensorflow 2.4.0
2020-09-10 15:31:35
컴퓨터
checking whether mkl is enabled or not.
python -c "from tensorflow.python.framework import test_util;print(test_util.IsMklEnabled())"
▼ more
checking whether mkl is enabled or not.
python -c "from tensorflow.python.framework import test_util;print(test_util.IsMklEnabled())"
ref: https://www.rdkit.org/docs/GettingStartedInPython.html
ref: https://github.com/keiserlab/e3fp
ref: https://github.com/CanisW/TF3P/blob/master/data/utils.py
. prerequisites
rdkit : https://www.rdkit.org/docs/index.html
> import rdkit.Chem as Chem
> from rdkit.Chem import AllChem
e3fp : pip install e3fp
> from e3fp.fingerprint.generate import fprints_dict_from_mol
. input: sdf (3D) to mol
- text sdf
> suppl = Chem.SDMolSupplier(/path_to_sdf)
> mol = suppl[0]
- binary sdf
> inf = open(/path_to_sdf,'rb')
> fsuppl = Chem.ForwardSDMolSupplier(inf)
- zip sdf (import gzip)
&nb