Python wrapper for signature molecular descriptors
Project description
Python wrapper for Molecular Signature Descriptors
Python wrapper to ease the calculation of Signature molecular descriptors.
Notice
This work relies on Gilleain Torrance's re-write of Jean-Loup Faulon's signature code for molecules (https://github.com/gilleain/signatures/).
The Signature Molecular Descriptor. 2. Enumerating Molecules from Their Extended Valence Sequences Jean-Loup Faulon, Carla J. Churchwell, and Donald P. Visco Journal of Chemical Information and Computer Sciences 2003 43 (3), 721-734 DOI: 10.1021/ci020346o
Installation
From source:
git clone https://github.com/OlivierBeq/Signature_pywrapper.git
pip install ./Signature_pywrapper
with pip:
pip install signature-pywrapper
Get started
from Signature_pywrapper import Signature
smiles_list = [
# erlotinib
"n1cnc(c2cc(c(cc12)OCCOC)OCCOC)Nc1cc(ccc1)C#C",
# midecamycin
"CCC(=O)O[C@@H]1CC(=O)O[C@@H](C/C=C/C=C/[C@@H]([C@@H](C[C@@H]([C@@H]([C@H]1OC)O[C@H]2[C@@H]([C@H]([C@@H]([C@H](O2)C)O[C@H]3C[C@@]([C@H]([C@@H](O3)C)OC(=O)CC)(C)O)N(C)C)O)CC=O)C)O)C",
# selenofolate
"C1=CC(=CC=C1C(=O)NC(CCC(=O)OCC[Se]C#N)C(=O)O)NCC2=CN=C3C(=N2)C(=O)NC(=N3)N",
# cisplatin
"N.N.Cl[Pt]Cl"
]
mols = [Chem.MolFromSmiles(smiles) for smiles in smiles_list]
sig = Signature()
print(sig.calculate(mols, depth=1))
One can also calculate signatures for multiple depths:
print(sig.calculate(mols, depth=[1, 2, 3]))
Documentation
def calculate(mols, show_banner=True, njobs=1, chunksize=100):
Default method to calculate counts of signatures for each vertex of the molecule.
Parameters:
- mols : Iterable[Chem.Mol]
RDKit molecule objects for which to obtain Signature descriptors. - depth : Union[int, List[int]]
Depth of the signatures of vertices. - show_banner : bool
Displays default notice about Signature descriptors. - njobs : int
Maximum number of simultaneous processes. - chunksize : int
Maximum number of molecules each process is charged of. - return_type : pd.DataFrame
Pandas DataFrame containing Signature molecular descriptors. If executables have not previously been downloaded, attempts to download and install them.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file Signature_pywrapper-0.0.1.tar.gz
.
File metadata
- Download URL: Signature_pywrapper-0.0.1.tar.gz
- Upload date:
- Size: 155.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc36a9c0a1b9773d6575c90228cb67e456b39ec768b8f761e70e2b2c396c60d |
|
MD5 | 8c5dab33f814d4bf554cd5e52f68b1ac |
|
BLAKE2b-256 | c0b7154670b9154d641109c2699eb8e76d9896076fb4673ffac6e927be703257 |
File details
Details for the file Signature_pywrapper-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: Signature_pywrapper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 153.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec8d1d9f497b1cb300b4559a8058d421eae8e3c42a6b907e11fa86101ffb2e5 |
|
MD5 | 5b87ff602601022e7f84e9024c618275 |
|
BLAKE2b-256 | 5f71065807a297bc0a7f9580bc1dfb24bc17b55b2ba34660ac2692d7e058fe2d |