LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rdkit

Open-source cheminformatics and molecular toolkit

TLDR

Import RDKit in Python
$ python -c "from rdkit import Chem"
copy
Read molecule from SMILES
$ python -c "from rdkit import Chem; m = Chem.MolFromSmiles('CCO'); print(m)"
copy
Calculate molecular weight
$ python -c "from rdkit.Chem import Descriptors; from rdkit import Chem; print(Descriptors.MolWt(Chem.MolFromSmiles('CCO')))"
copy

SYNOPSIS

rdkit Python library for cheminformatics

DESCRIPTION

RDKit is an open-source cheminformatics library. It provides functionality for reading, writing, and manipulating chemical structures, calculating molecular descriptors, and performing substructure searches.

EXAMPLES

$ from rdkit import Chem
from rdkit.Chem import AllChem, Descriptors, Draw

# Read molecule
mol = Chem.MolFromSmiles('c1ccccc1')  # Benzene

# Calculate properties
mw = Descriptors.MolWt(mol)
logp = Descriptors.MolLogP(mol)

# Generate 2D coordinates
AllChem.Compute2DCoords(mol)

# Generate 3D conformer
mol3d = Chem.AddHs(mol)
AllChem.EmbedMolecule(mol3d)

# Substructure search
pattern = Chem.MolFromSmarts('c1ccccc1')
mol.HasSubstructMatch(pattern)

# Save as image
Draw.MolToFile(mol, 'molecule.png')
copy

INPUT FORMATS

$ SMILES - Chem.MolFromSmiles()
SDF    - Chem.SDMolSupplier()
MOL    - Chem.MolFromMolFile()
copy

INSTALL

sudo pacman -S rdkit
copy
brew install rdkit
copy

CAVEATS

Python library installed via conda or pip (`pip install rdkit`). Requires numpy. A C++ library is also available. Some features require additional optional dependencies such as matplotlib for drawing.

HISTORY

RDKit was started by Greg Landrum at Rational Discovery and released as open source in 2006.

SEE ALSO

obabel(1), pymol(1), python(1), conda(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid