Skip to main content

Open-Michrom lib for chromosome simulations

Project description

OpenMiChroM

Citing OpenMiChroM PyPI conda-forge ReadTheDocs NDB Update Downloads GitHub-Stars

Documentation | Install | Tutorials | Forum

Overview

OpenMiChroM is a Python library for performing chromatin dynamics simulations and analyses. OpenMiChroM uses the OpenMM Python API employing the MiChroM (Minimal Chromatin Model) energy function. The chromatin dynamics simulations generate an ensemble of 3D chromosomal structures that are consistent with experimental Hi-C maps. OpenMiChroM also allows simulations of a single or multiple chromosome chain using High-Performance Computing in different platforms (GPUs and CPUs). It is a highly flexible framework that can be extended for chromatin modeling and simulations of different species across the tree of life, as well as more general cases of biomolecule simulations.

https://raw.githubusercontent.com/junioreif/OpenMiChroM/main/docs/source/images/OpenMiChroM_intro_small.jpg

The chromatin dynamics simulations can be performed for different human cell lines, cell phases (interphase to metaphase), and different organisms from DNAzoo. Chromatin subcompartment annotations are available at the NDB (Nucleome Data Bank). OpenMiChroM package receives the chromatin sequence of compartments and subcompartments as input to create and simulate a chromosome polymer model. Examples of running the simulations and generating the in silico Hi-C maps can be found here

https://raw.githubusercontent.com/junioreif/OpenMiChroM/main/docs/source/images/A549_NDB.jpg

Usage

The following code snippet shows how to generate a single chromosome polymer model and run a chromatin dynamics simulation using OpenMiChroM.

from OpenMiChroM.ChromDynamics import MiChroM
sim = MiChroM(name='stomach_GRCh38', temperature=1.0, timeStep=0.01)
sim.setup(platform="cuda")
sim.saveFolder('stomach_GRCh38_chr10_simulation')
sim.buildClassicMichrom(ChromSeq='inputs/stomach_GRCh38.bed', chromosome='chr10')

sim.createReporters(statistics=True, traj=True, trajFormat="cndb", energyComponents=True, interval=10**3)
sim.run(nsteps=10**5, report=True, interval=10**4)

Resources

Citation

When using OpenMiChroM to perform chromatin dynamics simulations or analyses, please use this citation.

We also thank the Polychrom where part of this code was inspired. You can use this citation.

Installation

The OpenMiChroM library can be installed via conda or pip, or compiled from source.

Install via conda

The code below will install OpenMiChroM from conda-forge.

conda install -c conda-forge OpenMiChroM

Note: Often, the installation via conda happens to be stuck. If this is the case, it is recommended to update conda/anaconda using the command line below and try to install OpenMiChroM again.

conda update --prefix /path/to/anaconda3/ anaconda

Install via pip

The code below will install OpenMiChroM from PyPI.

pip install OpenMiChroM

Note:

The OpenMiChroM library uses OpenMM API to run the chromatin dynamics simulations.

These requirements can be met by installing the OpenMM package from the conda-forge channel:

conda install -c conda-forge openmm

The following are libraries required for installing OpenMiChroM:

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

openmichrom-1.1.0.tar.gz (48.5 kB view details)

Uploaded Source

File details

Details for the file openmichrom-1.1.0.tar.gz.

File metadata

  • Download URL: openmichrom-1.1.0.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for openmichrom-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a2cd3ae826b0af507dc68b0870d25cbf7835e2954e9c96c14f0de33d43aadf00
MD5 dddb0578f9c19645385485a14a36e1f8
BLAKE2b-256 e57c16223eb7d05efa20f8cb1061f287fc35ed2c397a15cc959d02f10b8e6a03

See more details on using hashes here.

Supported by

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