No project description provided
Project description
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:
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c8c3708a0ebc15b3a1a2437daf414b00401d53737aa0d4535b2b817f41ad58d
|
|
| MD5 |
94779a95043818dbe3b0f2fbbd70a562
|
|
| BLAKE2b-256 |
7dbefa6072e205952705b3ce26a73e7ec7d0211b9eb8369aec3ca9c4d16e1274
|
Provenance
The following attestation bundles were made for mythos_bio-1.0.0.tar.gz:
Publisher:
dist.yml on mythos-bio/mythos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mythos_bio-1.0.0.tar.gz -
Subject digest:
2c8c3708a0ebc15b3a1a2437daf414b00401d53737aa0d4535b2b817f41ad58d - Sigstore transparency entry: 1569115576
- Sigstore integration time:
-
Permalink:
mythos-bio/mythos@a252e4f54c4f2835123498b6aadfba1b4f154a9c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mythos-bio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
dist.yml@a252e4f54c4f2835123498b6aadfba1b4f154a9c -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07839ceda96540ac6c9a75dab480a5210daeeecb93c63f783f23f8be0bc6d02c
|
|
| MD5 |
16daddf7433148c4798a342f6a909f57
|
|
| BLAKE2b-256 |
14c0c5ca48899ae96fb79bb9c09c4786baec3b15d86e7be305a02d45e7162514
|
Provenance
The following attestation bundles were made for mythos_bio-1.0.0-py3-none-any.whl:
Publisher:
dist.yml on mythos-bio/mythos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mythos_bio-1.0.0-py3-none-any.whl -
Subject digest:
07839ceda96540ac6c9a75dab480a5210daeeecb93c63f783f23f8be0bc6d02c - Sigstore transparency entry: 1569115584
- Sigstore integration time:
-
Permalink:
mythos-bio/mythos@a252e4f54c4f2835123498b6aadfba1b4f154a9c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mythos-bio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
dist.yml@a252e4f54c4f2835123498b6aadfba1b4f154a9c -
Trigger Event:
release
-
Statement type: