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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chromdyn-0.2.0.tar.gz | 38.9 kB | Without provenance | Details for chromdyn-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chromdyn-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for chromdyn-0.2.0-py3-none-any.whl |
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
|
Security for chromdyn 0.2.0
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.