No project description provided
Project description
Molecules and CGR’s fingerprints
Library provides transformers of molecules and CGR’s into features.
Pure python code
Sklearn like API. Pipelines supported.
Linear fingerprints
Morgan fingerprints
Linear features lists
Morgan features lists
Install
pip install StructureFingerprint
Example
import numpy as np from CGRtools import smiles from StructureFingerprint import LinearFingerprint, MorganFingerprint
lfp = LinearFingerprint() # Sklearn-like transformer mol = smiles(‘CN(C)C=O’)
print(lfp.transform([mol])) # array. Can be used in sklearn estimators print(lfp.transform_bitset([mol])) # active bits indexes
print(set(np.where(lfp.transform([mol])==1)[1]) == set(lfp.transform_bitset([mol])[0]))
print(lfp.transform_hashes([mol])) # hashes of fragments
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file StructureFingerprint-2.1.tar.gz.
File metadata
- Download URL: StructureFingerprint-2.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb11e1a2fbda5b4732926b6c15eed42945e3deb8f0809f23afe96f6de1ce0ba
|
|
| MD5 |
4dc0bfb106804d7d439af6d65349f2ff
|
|
| BLAKE2b-256 |
bffb1296d75c09c36de75786661db1351e750ca76b93ff4ddb052550c33766c3
|
File details
Details for the file StructureFingerprint-2.1-py3-none-any.whl.
File metadata
- Download URL: StructureFingerprint-2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae464085928df4dbfc85d565333fd7970f94e44fe3c67495800b898566cd7439
|
|
| MD5 |
9346fd56fc7acc84abb390815aa644d0
|
|
| BLAKE2b-256 |
ffc630ab85934120641ba333bf9128708101bed377b8237631160734cfd2bc31
|