Skip to main content

crimm

crimm stands for Chemistry with the ReInvented Macromolecular Mechanics.

This is a Python toolkit for biomolecule structure preparation, designed to unify common modeling routines under one scriptable platform. While many tools exist for tasks like solvation, adding hydrogens, or building missing loops, they often lack the scriptability needed for high-throughput pipelines. crimm aims to fill this gap by providing intuitive Python APIs that integrate seamlessly with pyCHARMM, RDKit, and other computational chemistry tools.

Why crimm?

  • Scriptable: All preparation steps are Python functions—no clicking through web interfaces or writing shell scripts
  • Integrated: Works natively with pyCHARMM for energy calculations and simulations
  • Accurate: Uses mmCIF format to correctly identify chain types, detect missing loops, and handle biological assemblies
  • Extensible: Adaptors connect crimm to RDKit, PropKa, OpenMM, and more

Features

  • Fetch structures from RCSB PDB or AlphaFold Database
  • Organize mmCIF structures into protein, nucleic acid, ligand, solvent, and ion components
  • Generate CHARMM36m topology for proteins, canonical DNA/RNA, and protein-containing systems
  • Normalize common terminal caps and report unsupported modified chemistry explicitly
  • Parameterize small-molecule ligands with CGenFF integration, including lone-pair-aware workflows
  • Read, write, and reload native CHARMM PSF and CRD files
  • Solvate in cubic or truncated octahedral water boxes
  • Add monovalent ions at target concentrations (SPLIT, SLTCAP methods)
  • Build missing loops from homology models
  • Visualize structures in Jupyter notebooks with NGLView

Installation

pip install crimm

Optional cheminformatics and protonation extras:

pip install "crimm[all]"

Requires Python >= 3.9. For a complete development environment:

conda env create -f env.yaml

Note: pyCHARMM, OpenMM, and the external CGenFF executable must be installed separately when those workflows are needed.

Quick Example

from crimm.Fetchers import fetch_rcsb
from crimm.Modeller import TopologyGenerator
from crimm.Modeller.Solvator import Solvator
from crimm.IO import write_psf, write_crd

# Fetch and prepare structure
model = fetch_rcsb('1LSA', organize=True)
topo_gen = TopologyGenerator()
for chain in model.protein:
    topo_gen.generate(chain)

# Solvate and add 150 mM KCl
solvator = Solvator(model)
solvator.solvate(cutoff=10.0, box_type='octa')
solvator.add_ions(concentration=0.15, cation='POT', anion='CLA')

# Write CHARMM files
write_psf(model, 'system.psf')
write_crd(model, 'system.crd')

Modules

Module Purpose
Fetchers Download structures from RCSB PDB or AlphaFold
Modeller Topology generation, PSF/CRD loading, solvation, loop building
IO Read/write PDB, mmCIF, PSF, and CRD files
Adaptors Connect to pyCHARMM, RDKit, PropKa

Documentation

See tutorials/ for Jupyter notebooks on structure preparation, topology generation, PSF/CRD workflows, loop building, and more.

License

GPLv3

Metadata

Release files for crimm 2026.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crimm 2026.2.2
File Size Uploaded Provenance Actions
crimm-2026.2.2.tar.gz 1.5 MB Without provenance Details for crimm-2026.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crimm 2026.2.2
File Interpreter ABI Platform Actions
crimm-2026.2.2-py3-none-any.whl Python 3 none any Details for crimm-2026.2.2-py3-none-any.whl

Total release size: 3.1 MB

Release files / crimm-2026.2.2.tar.gz

Download URL crimm-2026.2.2.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
7ba0da4b5032d9fad2b011a6eea46cc537a33067118ffc642803ab435b2e2031
BLAKE2b-256 checksum
How to use checksums
3521dc37f22af2d65cfbddc24eab52b16fe976e94f4fd61d2c37d27ac149531d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.17

Release files / crimm-2026.2.2-py3-none-any.whl

Download URL crimm-2026.2.2-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3d85d743eef0737f7650f5755b35f99b4e8bb0d162650a5273d32753244ca2b5
BLAKE2b-256 checksum
How to use checksums
b28526c7a8c87b68ee2ac482adb515476dfa54329506a4e3016feb3d194e910d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.17

Security for crimm 2026.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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