Skip to main content

molecular descriptor calculator

Project description

molecular descriptor calculator.

https://coveralls.io/repos/github/mordred-descriptor/mordred/badge.svg?branch=master Code Climate https://anaconda.org/mordred-descriptor/mordred/badges/version.svg https://img.shields.io/pypi/v/mordred.svg https://img.shields.io/badge/doi-10.1186%2Fs13321--018--0258--y-blue.svg https://img.shields.io/badge/slack-mordred--descriptor-brightgreen.svg

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

  1. 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


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)

Uploaded Source

Built Distribution

mordred_ojmb-1.2.2-py3-none-any.whl (178.5 kB view details)

Uploaded Python 3

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

Hashes for mordred_ojmb-1.2.2.tar.gz
Algorithm Hash digest
SHA256 9636850ea988a21017946204020bc7106a83f348986faa3b8de4674932e380a6
MD5 21cab77cfdd7af7dc0e1866cadbb54f3
BLAKE2b-256 7c2482bfd71b0e0f8bcb0ae6a738ddac5d65579474bcf8f3b579b061cdbbdcd8

See more details on using hashes here.

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

Hashes for mordred_ojmb-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da46cfb22d08b7e0f4206c460d3758dc2f22a64236306b5f6de93347b4cbc5fa
MD5 275373319e89b98091ca91ee5a15e200
BLAKE2b-256 9d2976871027d097b44441380dfb38e4cf189be5762698d5d4009e30c6da345f

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