Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

DARPA-ASKEM/mira

This branch is 10 commits ahead of gyorilab/mira:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2927476 · Mar 26, 2025
Mar 5, 2025
Mar 5, 2025
Feb 26, 2025
Mar 5, 2025
Feb 28, 2025
Mar 11, 2025
Apr 25, 2024
Feb 28, 2025
Mar 5, 2025
Jan 15, 2025
Jul 21, 2022
Mar 11, 2023
Sep 11, 2023
Feb 2, 2025
Oct 29, 2024

Repository files navigation

MIRA

Documentation Status

MIRA is a framework for representing systems using ontology-grounded meta-model templates, and generating various model implementations and exchange formats from these templates. It also implements algorithms for assembling and querying domain knowledge graphs in support of modeling.

Documentation

  • Installation instructions can be found here
  • Software documentation can be found here
  • Training material for working with MIRA template models can be found here

Resources

Example notebooks

  • Defining multiple model variants using MIRA Templates: Notebook 1
  • Generating an executable model from MIRA Templates and running simulation: Notebook 2
  • Stratifying and visualizing MIRA models, and exporting as Petri nets: Notebook 3
  • Processing an SBML model from BioModels, visualizing and exporting into Petri nets: Notebook 4
  • Using the MIRA Domain Knowledge Graph REST API: Notebook 5
  • Using the Model REST API to perform various model operations: Notebook 6
  • Using the web client in python that connects to the REST API: Notebook 7
  • Demonstrating MIRA TemplateModel capabilities: Notebook 8
  • Rapid construction of DKGs in ASKEM: Notebook 9
  • Implement a masking intervention in a compartmental model to simulate epidemic trajectories under different scenarios: Notebook 10
  • Benchmarking the efficacy of DKG groundings on a set of COVID EPI Models: Notebook 11

Related work

MIRA builds on and generalizes prior work including:

  • EMMAA: A framework for automatically maintaining a set of models surrounding the biology of viral pandemics, cancer, and other disease areas based on new findings as soon as they appear in the literature. Models are automatically analyzed against observations.
  • INDRA: An automated model building system from literature mining, structured databases, and natural language input for molecular biology. INDRA Statements serve as domain-specific instances of MIRA Templates.
  • INDRA CoGEx: A 3*10^7-relation scale domain-specific knowledge graph of biomedicine combining causal mechanisms with ontologies and relations derived from data.
  • INDRA World: A generalization of INDRA to modeling socio-economic systems, using a templated approach representing causal influence, events, and concepts.

Installation

The most recent code and data can be installed directly from GitHub with:

python -m pip install git+https://github.com/gyorilab/mira.git

To install in development mode, use the following:

git clone git+https://github.com/gyorilab/mira.git
cd mira
python -m pip install -e .

If you wanted to install extra dependencies that aren't listed under install_requires such as the packages required for running ode simulations, use the following:

python -m pip install -e .[ode]

To install multiple dependency blocks listed in setup.cfg, run the following:

python -m pip install -e .[ode,docs]

Extra dependency blocks/packages required for modules

Module Dependency
mira/modeling/ode.py ode
mira/modeling/viz.py viz
mira/sources/biomodels.py biomodels
mira/sources/sbml/processor.py sbml
mira/sources/space_latex.py tests

Funding

The development of MIRA is funded by the DARPA ASKEM program, grant number HR00112220036.

Languages

  • Jupyter Notebook 99.3%
  • Other 0.7%