Skip to main content

Molscrub Logo

Molscrub

Process large numbers of small molecules for docking with AutoDock. May be useful for structure-based modeling in general.

What happens:

  • generate 3D coordinates using RDKit's ETKDGv3 and UFF minimization
  • enumerate tautomers (aiming at low energy states only)
  • enumerate pH corrections
  • convert boats to chairs (6-member rings) and enumerate both chair states
  • enumerate chiral centers (not implemented right now)

Installation

Direct installation:

conda activate <desired-environment>    # if you are using conda environments

pip install git+https://github.com/forlilab/molscrub.git

For developers:

conda activate <desired-environment>    # if you are using conda environments

git clone git@github.com:forlilab/molscrub.git
cd molscrub
pip install -e .

Depends on the RDKit, which can be installed from conda-forge in the desired environment:

conda activate <desired-environment>
conda install rdkit -c conda-forge

Python scripting

from rdkit import Chem
from molscrub import Scrub

scrub = Scrub(
    ph_low=7.4,
    ph_high=7.4,
)

mol = Chem.MolFromSmiles("Clc1c(OCCC3)c3ccc1C(=O)Nc2nc[nH]c2")

# each state (e.g. tautomer) an rdkit mol and may have multiple conformers
for mol_state in scrub(mol):
    print(Chem.MolToSmiles(mol_state), "nr conformers: %d" % mol_state.GetNumConformers())

Command line tool examples

scrub.py "c1cc[nH]c(=O)c1" -o scrubbed.sdf --ph 5 --skip_gen3d
scrub.py input_mols.sdf -o scrubbed.sdf
scrub.py input_mols.smi -o scrubbed.sdf
# different model for protonation
scrub.py "c1cc[nH]c(=O)c1" --pka_model etr1 -o scrubbed.sdf

Other options described in the help message:

scrub.py -h

Where "input_mols.smi" can look like this:

CC(=O)O aceticacid
CN(C)C trimethylamine 
Clc1cc(O)ccc1C(=O)Nc2nc[nH]c2 hello_mol
c1cccc1 rdkit_will_cry
CCC good4bbq
CCO alsogood4bbq
c1cccnc1CC(=O)C a_ketone

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

molscrub-0.3.0.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

molscrub-0.3.0-py3-none-any.whl (74.4 kB view details)

Uploaded Python 3

File details

Details for the file molscrub-0.3.0.tar.gz.

File metadata

  • Download URL: molscrub-0.3.0.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for molscrub-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c17d64684af3bfae311bea013ad7fd2e9fb11abfc4e3854a602e551d46c87365
MD5 c30348d29e4bb9a96fafd7a74d66a1f3
BLAKE2b-256 75a9acd209b0c0de98e16155b313753fb8ae3726b3257fa0592d25ffea765eba

See more details on using hashes here.

Provenance

The following attestation bundles were made for molscrub-0.3.0.tar.gz:

Publisher: pypi-publish.yml on forlilab/molscrub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molscrub-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: molscrub-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 74.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for molscrub-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11e231e0f3b8d8fa929ef86a44d7eb7330b58112bec58572fd7f0d876f10fae4
MD5 f25c2d9d9629291fd6f90a0d2ae295d9
BLAKE2b-256 5040e7024b766ab2ddf6899b1a9bba5c6659e3258dd9a9a36a230caa58221cd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for molscrub-0.3.0-py3-none-any.whl:

Publisher: pypi-publish.yml on forlilab/molscrub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page