molecular descriptor calculator
Project description
molecular descriptor calculator.
number of descriptors
>>> from mordred import Calculator, descriptors
>>> n_all = len(Calculator(descriptors, ignore_3D=False).descriptors)
>>> n_2D = len(Calculator(descriptors, ignore_3D=True).descriptors)
>>> print("2D: {:5}\n3D: {:5}\n------------\ntotal: {:5}".format(n_2D, n_all - n_2D, n_all))
2D: 1613
3D: 213
------------
total: 1826
Installation
pip
install mordred
pip install https://github.com/OlivierBeq/mordred/tarball/master
Testing the installation
python -m mordred.tests
Python examples
>>> from rdkit import Chem
>>> from mordred import Calculator, descriptors
# create descriptor calculator with all descriptors
>>> calc = Calculator(descriptors, ignore_3D=True)
>>> len(calc.descriptors)
1613
>>> len(Calculator(descriptors, ignore_3D=True, version="1.0.0"))
1612
# calculate single molecule
>>> mol = Chem.MolFromSmiles('c1ccccc1')
>>> calc(mol)[:3]
[4.242640687119286, 3.9999999999999996, 0]
# calculate multiple molecule
>>> mols = [Chem.MolFromSmiles(smi) for smi in ['c1ccccc1Cl', 'c1ccccc1O', 'c1ccccc1N']]
# as pandas
>>> df = calc.pandas(mols)
>>> df['SLogP']
0 2.3400
1 1.3922
2 1.2688
Name: SLogP, dtype: float64
see examples
Citation
Moriwaki H, Tian Y-S, Kawashita N, Takagi T (2018) Mordred: a molecular descriptor calculator. Journal of Cheminformatics 10:4 . doi: 10.1186/s13321-018-0258-y
Documentation
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
mordred_ojmb-1.2.2.tar.gz
(131.6 kB
view details)
Built Distribution
mordred_ojmb-1.2.2-py3-none-any.whl
(178.5 kB
view details)
File details
Details for the file mordred_ojmb-1.2.2.tar.gz
.
File metadata
- Download URL: mordred_ojmb-1.2.2.tar.gz
- Upload date:
- Size: 131.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9636850ea988a21017946204020bc7106a83f348986faa3b8de4674932e380a6
|
|
MD5 |
21cab77cfdd7af7dc0e1866cadbb54f3
|
|
BLAKE2b-256 |
7c2482bfd71b0e0f8bcb0ae6a738ddac5d65579474bcf8f3b579b061cdbbdcd8
|
File details
Details for the file mordred_ojmb-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: mordred_ojmb-1.2.2-py3-none-any.whl
- Upload date:
- Size: 178.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
da46cfb22d08b7e0f4206c460d3758dc2f22a64236306b5f6de93347b4cbc5fa
|
|
MD5 |
275373319e89b98091ca91ee5a15e200
|
|
BLAKE2b-256 |
9d2976871027d097b44441380dfb38e4cf189be5762698d5d4009e30c6da345f
|