Skip to main content

chromdyn

A Python library for chromosome dynamics simulation and analysis with options to integrate Hi-C data.

Overview

chromdyn provides tools for building, simulating, and analyzing 3D chromosome structures.
It uses OpenMM for fast CPU/GPU simulations and includes:

  • Polymer topology generation
  • Customizable force fields
  • Hi-C-based restraints
  • Simulation utilities
  • Analysis tools

Installation

From PyPI

pip install chromdyn

From source (development)

git clone https://github.com/s-brahmachari/chromdyn
cd chromdyn
pip install -e .

Verify Installation

Run the built-in test script:

python -m chromdyn.check_install

Quick Example

from chromdyn import ChromatinDynamics, TopologyGenerator

gen = TopologyGenerator()
gen.gen_top([100])

sim = ChromatinDynamics(
    gen.topology,
    name="demo",
    platform_name="CPU",
)

sim.force_field_manager.add_harmonic_bonds()
sim.simulation_setup(
    init_struct="randomwalk",
    integrator="langevin",
    temperature=300.0,
    timestep=0.01,
)

sim.run(1000)

Tutorials

See the notebooks/ directory for examples on:

  • Building polymer models
  • Running simulations
  • Using Hi-C restraints
  • Analyzing trajectories

License

MIT License.

Metadata

Release files for chromdyn 0.2.0

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

Source distribution (sdist)

Source distribution for chromdyn 0.2.0
File Size Uploaded
chromdyn-0.2.0.tar.gz 38.9 kB Details

Built distribution (wheel)

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

Total release size: 75.0 kB

Release files / chromdyn-0.2.0.tar.gz

Download URL chromdyn-0.2.0.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
feb90f74f3d179ee501811d00d01911c6cb333d5c539977663b7ca2937b4cb39
BLAKE2b-256 checksum
How to use checksums
ce27b3878b5a3aebecdaca7c8f7da6cd2f1b2129d5e36dc4923a34af2c7da25c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / chromdyn-0.2.0-py3-none-any.whl

Download URL chromdyn-0.2.0-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8790fa6ba090cfe91e31bb36772a7f09ea86cbcfc3fada267b28aedc6ff1e76
BLAKE2b-256 checksum
How to use checksums
a028e0c52316ede002710cab80e32f9224ee32d66ac1c54f9298fc62a0f8c7a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release 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