Community-Maintained Version of mordred
Maintained. Last release 10 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install mordredcommunitymordred-community
Community maintained version of the mordred molecular descriptor calculator which is no longer maintained.
We are accepting pull requests and looking for maintainers! Reach out on the Issues page if you are interested in helping out!
Installation
mordredcommunity is currently available on PyPI with pip install mordredcommunity or via the conda package manager with conda install -c conda-forge mordredcommunity.
mordredcommunity supports Python 3.9 and newer on all platforms.
To add support for pandas and progress bars, use PyPI and call pip install mordredcommunity[full].
Usage of mordredcommunity is the same as mordred.
Packages using mordredcommunity
mordred-gui(github.com/research11111/mordred-gui): Graphical user interface wrapper tomordredcommunity
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
Examples
calculate all descriptors
$ python -m mordred example.smi
name,ECIndex,WPath,WPol,Zagreb1, (snip)
benzene,36,27,3,24.0, (snip)
chrolobenzene,45,42,5,30.0, (snip)
save to file (display progress bar)
$ python -m mordred example.smi -o example.csv
50%|███████████████████████████████████████▌ | 1/2 [00:00<00:00, 7.66it/s]
stream read (low memory, no number of molecules information)
$ python -m mordred example.smi -s -o example.csv
0it [00:00, ?it/s]
only ABCIndex
$ python -m mordred example.smi -d ABCIndex
name,ABC,ABCGG
benzene,4.242640687119286,3.9999999999999996
chlorobenzene,5.059137268047012,4.785854275382693
ABCIndex and AcidBase
$ python -m mordred example.smi -d ABCIndex -d AcidBase
name,ABC,ABCGG,nAcid,nBase
benzene,4.242640687119286,3.9999999999999996,0,0
chlorobenzene,5.059137268047012,4.785854275382693,0,0