Skip to main content

Tools for chromosome dynamics modeling and analysis

Project description

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.

Project details


Download files

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

Source Distribution

chromdyn-0.2.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

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

chromdyn-0.2.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file chromdyn-0.2.0.tar.gz.

File metadata

  • Download URL: chromdyn-0.2.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chromdyn-0.2.0.tar.gz
Algorithm Hash digest
SHA256 feb90f74f3d179ee501811d00d01911c6cb333d5c539977663b7ca2937b4cb39
MD5 cdd177be4a7bd9f34b78035829d28a10
BLAKE2b-256 ce27b3878b5a3aebecdaca7c8f7da6cd2f1b2129d5e36dc4923a34af2c7da25c

See more details on using hashes here.

File details

Details for the file chromdyn-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: chromdyn-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chromdyn-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8790fa6ba090cfe91e31bb36772a7f09ea86cbcfc3fada267b28aedc6ff1e76
MD5 2429dacc1a95a911ca648051fdeadaec
BLAKE2b-256 a028e0c52316ede002710cab80e32f9224ee32d66ac1c54f9298fc62a0f8c7a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page