Skip to main content

No project description provided

Project description

mythos logo

CI Documentation Status codecov Security arXiv

Mythos is a Python package for simulating and fitting coarse-grained molecular models to macroscopic experimental data.

Currently, Mythos can run simulations using JAX-MD, oxDNA, GROMACS, and LAMMPS. (oxDNA, GROMACS, and LAMMPS must be installed separately.)

Further, Mythos supports fitting models using JAX-MD (Direct Differentiation, and DiffTRe) and oxDNA / GROMACS / LAMMPS (DiffTRe only). Built-in energy models include oxDNA1, oxDNA2, RNA, hybrid DNA/RNA, and MARTINI 2/3 coarse-grained lipid models.

Quick Start

We recommend using a fresh conda environment with Python 3.11. You can create a new environment with the following command:

conda create -y -n mythos python=3.11
conda activate mythos

Depending on your hardware, you may want to install the GPU accelerated version of JAX, see the JAX documentation for more details on how to do this. If you aren't interested in GPU support, you can skip straight to installing mythos which will install the CPU version of JAX.

First install mythos using pip:

pip install git+https://github.com/mythos-bio/mythos.git

Simulations

Information on how to run a simulation can be found in the documentation.

One advantage of mythos is that you can specify a custom energy function for both simulations and optimizations. Information on how energy functions are defined and how to define your own energy functions can be found in the documentation.

Optimizations

The optimization framework is built around four abstractions:

mythos optimization lifecycle

  • Simulator — runs a simulation and produces observables.
  • Observable — a quantity produced by a simulator (e.g. a trajectory, structural property, or thermodynamic measurement).
  • Objective — computes gradients of a loss function with respect to the parameters being optimized.
  • Optimizer — coordinates simulators, collects observables, passes them to objectives, aggregates gradients, and applies parameter updates.

Multiple simulators (potentially using different backends) and multiple objectives can be jointly optimized. For example, you can simultaneously fit structural and thermodynamic properties across simulations at different conditions. Parallel execution is supported via Ray, enabling distribution across local cores or a remote cluster.

For more details, see the optimization docs and the examples.

Development

We welcome contributions! If you are looking for something to work on, check out the issues.

If you have a feature request or an idea that you would like to contribute, please open an issue. The project is fast moving, opening an issue will help us to give you quick feedback and help you to get started.

See the CONTRIBUTING

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

mythos_bio-1.0.0.tar.gz (28.3 MB view details)

Uploaded Source

Built Distribution

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

mythos_bio-1.0.0-py3-none-any.whl (303.5 kB view details)

Uploaded Python 3

File details

Details for the file mythos_bio-1.0.0.tar.gz.

File metadata

  • Download URL: mythos_bio-1.0.0.tar.gz
  • Upload date:
  • Size: 28.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mythos_bio-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c8c3708a0ebc15b3a1a2437daf414b00401d53737aa0d4535b2b817f41ad58d
MD5 94779a95043818dbe3b0f2fbbd70a562
BLAKE2b-256 7dbefa6072e205952705b3ce26a73e7ec7d0211b9eb8369aec3ca9c4d16e1274

See more details on using hashes here.

Provenance

The following attestation bundles were made for mythos_bio-1.0.0.tar.gz:

Publisher: dist.yml on mythos-bio/mythos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mythos_bio-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mythos_bio-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 303.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mythos_bio-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07839ceda96540ac6c9a75dab480a5210daeeecb93c63f783f23f8be0bc6d02c
MD5 16daddf7433148c4798a342f6a909f57
BLAKE2b-256 14c0c5ca48899ae96fb79bb9c09c4786baec3b15d86e7be305a02d45e7162514

See more details on using hashes here.

Provenance

The following attestation bundles were made for mythos_bio-1.0.0-py3-none-any.whl:

Publisher: dist.yml on mythos-bio/mythos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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