Skip to main content

Python wrapper for BlueDesc molecular descriptors

Project description

License: MIT

Python wrapper for BlueDesc molecular descriptors

Installation

From source:

git clone https://github.com/OlivierBeq/bluedesc_pywrapper.git
pip install ./bluedesc_pywrapper

with pip:

pip install BlueDesc-pywrapper

Get started

from BlueDesc_pywrapper import BlueDesc
from rdkit import Chem
from rdkit.Chem import AllChem

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.AddHs(Chem.MolFromSmiles(smiles)) for smiles in smiles_list]
for mol in mols:
    _ = AllChem.EmbedMolecule(mol)

bluedesc = BlueDesc()
print(bluedesc.calculate(mols))

The above calculates 174 molecular descriptors (33 1D, 85 2D and 56 3D). :warning: Molecules are required to have conformers for descriptors to be calculated.

## Documentation

```python
def calculate(mols, show_banner=True, njobs=1, chunksize=1000):

Default method to calculate BlueDesc fingerprints.

Parameters:

  • mols : Iterable[Chem.Mol]
    RDKit molecule objects for which to obtain BlueDesc descriptors.
  • show_banner : bool
    Displays default notice about BlueDesc.
  • njobs : int
    Maximum number of simultaneous processes.
  • chunksize : int
    Maximum number of molecules each process is charged of.

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

BlueDesc_pywrapper-0.0.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

BlueDesc_pywrapper-0.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file BlueDesc_pywrapper-0.0.1.tar.gz.

File metadata

  • Download URL: BlueDesc_pywrapper-0.0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for BlueDesc_pywrapper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c397e2015933b0dc358c9d7df93f7a0693ae8e858c5cfe4654e1b15b303d9981
MD5 eee52f58d90d5721360a47ab984f9cc9
BLAKE2b-256 c73f1de799f59c1596df3bf0799bb9cced8727060a43ca4639bc420bfcb43434

See more details on using hashes here.

File details

Details for the file BlueDesc_pywrapper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for BlueDesc_pywrapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1746426fc3bd18996233f4d7611cd7c1b76587a3c55bbd2460d5d54d0d7162f
MD5 152ee8b17fda94856b986fa7e9f2e8e2
BLAKE2b-256 6d78cc011add3fd26516f8876dffd804cc025406298624ea710fc0363a93143e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page