Corpus Engine Towards a reproducible .science file.
← All .science files

pmid:40408146

MIMIC: a Python package for simulating, inferring, and predicting microbial community interactions and dynamics.

Pedro Fontanarrosa · Chania Clare · Alex J H Fedorec · Chris P Barnes

Bioinformatics (Oxford, England) · 2025 doi:10.1093/bioinformatics/btaf174

Paper

complete

Experiment

partial

Data

partial

Analysis

partial

Execution

absent

Execution evidence has not yet been added to this .science file. Explore its methods, data and open questions to plan the next step.
Record details sci_version · id · kind · revision · content_hash · schema · created_at · updated_at · generator
id
pmid:40408146
kind
science-record
content_hash
sha256:847f82d2fdfc6fffb5da6cedcc14d2cb4721bb5217993f430f8725ffc0267ca0
schema
https://corpus.bntrg.co.uk/sci/1.0/sci.schema.json
created_at
2026-11-01T20:30:33Z
updated_at
2026-11-01T21:35:12Z
generator object · 2 fields
name
corpus-assay-engine
run_id
reading-sci-2026-11-01
paper object · 10 fields
state
complete
title
MIMIC: a Python package for simulating, inferring, and predicting microbial community interactions and dynamics.
doi
10.1093/bioinformatics/btaf174
pmid
40408146
authors array · 4 items
[0]
Pedro Fontanarrosa
[1]
Chania Clare
[2]
Alex J H Fedorec
[3]
Chris P Barnes
journal
Bioinformatics (Oxford, England)
year
2025
abstract
SUMMARY: The study of microbial communities is vital for understanding their impact on environmental, health, and technological domains. The Modelling and Inference of MICrobiomes Project (MIMIC) introduces a Python package designed to advance the simulation, inference, and prediction of microbial community interactions and dynamics. Addressing the complex nature of microbial ecosystems, MIMIC integrates a suite of mathematical models, including previously used approaches such as Generalized Lotka-Volterra (gLV), Gaussian Processes (GP), and Vector Autoregression (VAR) plus newly developed models for integrating multi-omic data, to offer a versatile framework for analyzing microbial dynamics. By leveraging Bayesian inference and machine learning techniques, MIMIC provides the ability to infer the dynamics of microbial communities from empirical data, facilitating a deeper understanding of their complex biological processes, unveiling possible unknown ecological interactions, and enabling the design of microbial communities. Such insights could help to advance microbial ecology research, optimizing biotechnological applications, and contribute to environmental sustainability and public health strategies. MIMIC is designed for flexibility and ease of use, aiming to support researchers and practitioners in microbial ecology and microbiome research. AVAILABILITY AND IMPLEMENTATION: MIMIC is freely available under the MIT License at https://github.com/ucl-cssb/MIMIC. It is implemented in Python (version 3.7 or higher) and is compatible with Windows, macOS, and Linux operating systems. MIMIC depends on standard Python libraries including NumPy, SciPy, and PyMC. Comprehensive examples and tutorials (including the main text demonstrations) are provided as Jupyter notebooks in the examples/directory and at the MIMIC Docs website, along with detailed installation instructions and real-world data use cases. The software will remain freely available for at least two years following publication. A code snapshot for this publication is also available at Zenodo: https://doi.org/10.5281/zenodo.15149003.
claims array · 3 items
[0] object · 6 fields
id
claim-method
statement
First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters.
kind
methodological
target
null
evidence array · 1 item
[0] object · 3 fields
asset
source:pmid:40408146
locator
sections[6] "3 Results" paragraph 2
quote
First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters.
state
complete
[1] object · 6 fields
id
claim-data-access
statement
The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003.
kind
methodological
target
null
evidence array · 1 item
[0] object · 3 fields
asset
source:pmid:40408146
locator
sections[15] "Data availability" paragraph 2
quote
The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003.
state
complete
[2] object · 6 fields
id
claim-target-result
statement
MIMIC used Bayesian inference to recover interaction parameters from synthetic data and infer microbial–metabolite interactions from a real-world wastewater-treatment dataset.
kind
qualitative
target
null
evidence array · 2 items
[0] object · 3 fields
asset
source:pmid:40408146
locator
sections[6] "3 Results" paragraph 2
quote
First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters.
[1] object · 3 fields
asset
source:pmid:40408146
locator
sections[6] "3 Results" paragraph 2
quote
Second, we applied MIMIC to a real-world dataset of microbial abundances and metabolite concentrations from a wastewater treatment facility (Herold et al. 2020).
state
complete
gaps array · 0 items
experiment object · 8 fields
state
partial
objective
MIMIC used Bayesian inference to recover interaction parameters from synthetic data and infer microbial–metabolite interactions from a real-world wastewater-treatment dataset.
steps array · 3 items
[0] object · 13 fields
id
read_published_estimate
order
1
name
Read the published estimate from the source
kind
other
state
complete
blocked_on
null
description
The claim, method and evidence span published with the source article.
parameters object · 0 fields
inputs array · 1 item
[0]
source:pmid:40408146
outputs array · 1 item
[0]
the published estimate and its evidence
instruments array · 0 items
reagents array · 0 items
[1] object · 13 fields
id
obtain_source_data
order
2
name
Obtain the source data from the named repository
kind
data-preparation
state
blocked
blocked_on
data:accession_absent
description
The GEO series accession resolves and its sample accessions are listed. This lane did not download the dataset or read its licence.
parameters object · 0 fields
inputs array · 0 items
outputs array · 1 item
[0]
the source data with its repository provenance
instruments array · 0 items
reagents array · 0 items
[2] object · 13 fields
id
run_analysis
order
3
name
Run the published analysis
kind
analysis
state
complete
blocked_on
null
description
Apply the paper's statistical method to the resolved series and compare the result with the published target.
parameters object · 0 fields
inputs array · 0 items
outputs array · 1 item
[0]
the replicated result and its comparison
instruments array · 0 items
reagents array · 0 items
materials array · 0 items
instruments array · 0 items
reagents array · 0 items
conditions object · 0 fields
gaps array · 1 item
[0]
step:obtain_source_data blocked on data:accession_absent
data object · 3 fields
state
partial
assets array · 1 item
[0] object · 15 fields
id
source:pmid:40408146
role
manuscript
format
xml
media_type
application/xml
uri
https://doi.org/10.1093/bioinformatics/btaf174
sha256
sha256:6538879e673b025067fb1964c1cd7f7c089c800afac1d8f7f1c7c7224b500b08
bytes
21725
access
open
state
resolved
reader
null
reader_status
reader_required
identifier
10.1093/bioinformatics/btaf174
version
null
note
Full article fetched from PMC; the checksum covers the rendered section body, not the original XML bytes.
structure object · 4 fields
pmcid
PMC12119135
source
europe_pmc_fulltext
coverage
whole_body_without_references
text_hash_scope
rendered_section_body
gaps array · 0 items
analysis object · 4 fields
state
partial
methods array · 1 item
[0] object · 10 fields
id
method-1
family
null
specific
null
label
Bayesian inference
dsl_operations array · 0 items
missing_operations array · 0 items
parameters object · 0 fields
data_shapes array · 0 items
evidence object · 3 fields
score
1
band
verbatim
quote
First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters.
targets array · 0 items
gaps array · 1 item
[0]
method.reader_named_unmapped
capability object · 3 fields
state
complete
requirements array · 1 item
[0] object · 6 fields
capability_id
capability:computational_analysis
label
Computational analysis platform
assay_families array · 9 items
[0]
meta_analysis
[1]
machine_learning
[2]
survival_analysis
[3]
statistical_regression
[4]
pca
[5]
molecular_docking
[6]
network_analysis
[7]
differential_expression
[8]
gwas
candidate
Automated Assays Laravel application and simulated adapters
gaps array · 0 items
readiness object · 8 fields
state
blocked
tier
R4
blocked_on
data:accession_absent
axes object · 3 fields
method object · 5 fields
tier
R4
expressible
false
required_operations array · 0 items
missing_operations array · 0 items
basis
The reader quoted the method the paper names (Bayesian inference), but the corpus's method extractor could not map it onto a DSL operation, so the method is published but not expressible.
capability object · 4 fields
tier
R1
capability_id
capability:computational_analysis
availability_state
owned
basis
The computational analysis is owned. The physical bench the paper used is not, so a physical validation cannot be run here.
data object · 6 fields
tier
R4
reachable
false
accessions array · 0 items
resolved_accessions array · 0 items
statements array · 1 item
[0]
The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003.
basis
The paper names no accession to its source data, so the data has to come from the authors.
can_run object · 3 fields
dsl_operations array · 0 items
assets array · 1 item
[0]
source:pmid:40408146
steps array · 1 item
[0]
run_analysis
must_build object · 5 fields
dsl_operations array · 0 items
converters array · 0 items
readers array · 0 items
capabilities array · 0 items
data_gaps array · 1 item
[0]
data:geo:None
gaps array · 1 item
[0]
data:accession_absent
review object · 5 fields
state
partial
machine_critique object · 5 fields
kind
extraction_review
reader object · 5 fields
model
MiniMax-M3.1-Flash
provider
minimax
provider_family
minimax
read_at
2026-11-01T19:53:07Z
independence
single_reader
evidence_check object · 2 fields
method
verbatim
availability
verbatim
calls
5
usage object · 3 fields
prompt_tokens
6091
completion_tokens
2780
cached_tokens
264
stages array · 1 item
[0] object · 4 fields
id
extraction
state
complete
reader
MiniMax-M3.1-Flash
provider
minimax
gaps array · 3 items
[0]
review.independent_reader
[1]
review.machine_critique
[2]
review.human_critique
execution object · 5 fields
state
absent
status
not_run
mode
null
runs array · 0 items
gaps array · 1 item
[0]
execution.not_run
provenance object · 7 fields
entities array · 3 items
[0] object · 3 fields
id
pmid:40408146
type
paper
label
pmid:40408146
[1] object · 3 fields
id
source:pmid:40408146
type
manuscript
label
PMID 40408146 full text
[2] object · 3 fields
id
data:geo:None
type
dataset
label
GEO None
activities array · 3 items
[0] object · 4 fields
id
activity-reading-sci-2026-11-01
type
classification
used array · 3 items
[0] object · 3 fields
id
pmid:40408146
type
paper
label
pmid:40408146
[1] object · 3 fields
id
source:pmid:40408146
type
manuscript
label
PMID 40408146 full text
[2] object · 3 fields
id
data:geo:None
type
dataset
label
GEO None
agent
agent:corpus-assay-engine
[1] object · 4 fields
id
activity-read-40408146
type
extraction
used array · 1 item
[0]
source:pmid:40408146
agent
agent:minimax-reader
[2] object · 4 fields
id
activity-resolve-None
type
accession_resolution
used array · 1 item
[0]
data:geo:None
agent
agent:corpus-assay-engine
agents array · 2 items
[0] object · 3 fields
id
agent:corpus-assay-engine
type
software
label
Corpus assay engine
[1] object · 3 fields
id
agent:minimax-reader
type
software
label
MiniMax literature reader
source_run_id
reading-sci-2026-11-01
dsl_catalogue_fingerprint
343fb30756ba6ec3
capability_table_fingerprint
2cb3e42f047d2ecf
snapshot_id
ba34b49490d9bfaf
lineage object · 4 fields
parent_id
pmid:40408146
parent_hash
sha256:c3a92bca6459d59206528bc208371e98f5ff13b2a41afeeda17b6105da617c2b
fork_of
null
gaps array · 6 items
[0]
execution.not_run
[1]
method.reader_named_unmapped
[2]
review.human_critique
[3]
review.independent_reader
[4]
review.machine_critique
[5]
step:obtain_source_data blocked on data:accession_absent
Complete file
{"sci_version": "1.0", "schema": "https://corpus.bntrg.co.uk/sci/1.0/sci.schema.json", "id": "pmid:40408146", "kind": "science-record", "revision": 2, "content_hash": "sha256:847f82d2fdfc6fffb5da6cedcc14d2cb4721bb5217993f430f8725ffc0267ca0", "created_at": "2026-11-01T20:30:33Z", "updated_at": "2026-11-01T21:35:12Z", "generator": {"name": "corpus-assay-engine", "run_id": "reading-sci-2026-11-01"}, "paper": {"state": "complete", "title": "MIMIC: a Python package for simulating, inferring, and predicting microbial community interactions and dynamics.", "doi": "10.1093/bioinformatics/btaf174", "pmid": "40408146", "authors": ["Pedro Fontanarrosa", "Chania Clare", "Alex J H Fedorec", "Chris P Barnes"], "journal": "Bioinformatics (Oxford, England)", "year": 2025, "abstract": "SUMMARY: The study of microbial communities is vital for understanding their impact on environmental, health, and technological domains. The Modelling and Inference of MICrobiomes Project (MIMIC) introduces a Python package designed to advance the simulation, inference, and prediction of microbial community interactions and dynamics. Addressing the complex nature of microbial ecosystems, MIMIC integrates a suite of mathematical models, including previously used approaches such as Generalized Lotka-Volterra (gLV), Gaussian Processes (GP), and Vector Autoregression (VAR) plus newly developed models for integrating multi-omic data, to offer a versatile framework for analyzing microbial dynamics. By leveraging Bayesian inference and machine learning techniques, MIMIC provides the ability to infer the dynamics of microbial communities from empirical data, facilitating a deeper understanding of their complex biological processes, unveiling possible unknown ecological interactions, and enabling the design of microbial communities. Such insights could help to advance microbial ecology research, optimizing biotechnological applications, and contribute to environmental sustainability and public health strategies. MIMIC is designed for flexibility and ease of use, aiming to support researchers and practitioners in microbial ecology and microbiome research.\nAVAILABILITY AND IMPLEMENTATION: MIMIC is freely available under the MIT License at https://github.com/ucl-cssb/MIMIC. It is implemented in Python (version 3.7 or higher) and is compatible with Windows, macOS, and Linux operating systems. MIMIC depends on standard Python libraries including NumPy, SciPy, and PyMC. Comprehensive examples and tutorials (including the main text demonstrations) are provided as Jupyter notebooks in the examples/directory and at the MIMIC Docs website, along with detailed installation instructions and real-world data use cases. The software will remain freely available for at least two years following publication. A code snapshot for this publication is also available at Zenodo: https://doi.org/10.5281/zenodo.15149003.", "claims": [{"id": "claim-method", "statement": "First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters.", "kind": "methodological", "target": null, "evidence": [{"asset": "source:pmid:40408146", "locator": "sections[6] \"3 Results\" paragraph 2", "quote": "First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters."}], "state": "complete"}, {"id": "claim-data-access", "statement": "The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003.", "kind": "methodological", "target": null, "evidence": [{"asset": "source:pmid:40408146", "locator": "sections[15] \"Data availability\" paragraph 2", "quote": "The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003."}], "state": "complete"}, {"id": "claim-target-result", "statement": "MIMIC used Bayesian inference to recover interaction parameters from synthetic data and infer microbial–metabolite interactions from a real-world wastewater-treatment dataset.", "kind": "qualitative", "target": null, "evidence": [{"asset": "source:pmid:40408146", "locator": "sections[6] \"3 Results\" paragraph 2", "quote": "First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters."}, {"asset": "source:pmid:40408146", "locator": "sections[6] \"3 Results\" paragraph 2", "quote": "Second, we applied MIMIC to a real-world dataset of microbial abundances and metabolite concentrations from a wastewater treatment facility (Herold et al. 2020)."}], "state": "complete"}], "gaps": []}, "experiment": {"state": "partial", "objective": "MIMIC used Bayesian inference to recover interaction parameters from synthetic data and infer microbial–metabolite interactions from a real-world wastewater-treatment dataset.", "steps": [{"id": "read_published_estimate", "order": 1, "name": "Read the published estimate from the source", "kind": "other", "state": "complete", "blocked_on": null, "description": "The claim, method and evidence span published with the source article.", "duration_hours": null, "parameters": {}, "inputs": ["source:pmid:40408146"], "outputs": ["the published estimate and its evidence"], "instruments": [], "reagents": []}, {"id": "obtain_source_data", "order": 2, "name": "Obtain the source data from the named repository", "kind": "data-preparation", "state": "blocked", "blocked_on": "data:accession_absent", "description": "The GEO series accession resolves and its sample accessions are listed. This lane did not download the dataset or read its licence.", "duration_hours": null, "parameters": {}, "inputs": [], "outputs": ["the source data with its repository provenance"], "instruments": [], "reagents": []}, {"id": "run_analysis", "order": 3, "name": "Run the published analysis", "kind": "analysis", "state": "complete", "blocked_on": null, "description": "Apply the paper's statistical method to the resolved series and compare the result with the published target.", "duration_hours": null, "parameters": {}, "inputs": [], "outputs": ["the replicated result and its comparison"], "instruments": [], "reagents": []}], "materials": [], "instruments": [], "reagents": [], "conditions": {}, "gaps": ["step:obtain_source_data blocked on data:accession_absent"]}, "data": {"state": "partial", "assets": [{"id": "source:pmid:40408146", "role": "manuscript", "format": "xml", "media_type": "application/xml", "uri": "https://doi.org/10.1093/bioinformatics/btaf174", "sha256": "sha256:6538879e673b025067fb1964c1cd7f7c089c800afac1d8f7f1c7c7224b500b08", "bytes": 21725, "access": "open", "state": "resolved", "reader": null, "reader_status": "reader_required", "identifier": "10.1093/bioinformatics/btaf174", "version": null, "note": "Full article fetched from PMC; the checksum covers the rendered section body, not the original XML bytes.", "structure": {"pmcid": "PMC12119135", "source": "europe_pmc_fulltext", "coverage": "whole_body_without_references", "text_hash_scope": "rendered_section_body"}}], "gaps": []}, "analysis": {"state": "partial", "methods": [{"id": "method-1", "family": null, "specific": null, "label": "Bayesian inference", "dsl_operations": [], "missing_operations": [], "expressible": null, "parameters": {}, "data_shapes": [], "evidence": {"score": 1.0, "band": "verbatim", "quote": "First, we simulated microbial abundances using the VAR model with specific interaction parameters, then used Bayesian inference to recover these parameters."}}], "targets": [], "gaps": ["method.reader_named_unmapped"]}, "capability": {"state": "complete", "requirements": [{"capability_id": "capability:computational_analysis", "label": "Computational analysis platform", "assay_families": ["meta_analysis", "machine_learning", "survival_analysis", "statistical_regression", "pca", "molecular_docking", "network_analysis", "differential_expression", "gwas"], "availability_state": "owned", "tier_unlocked": "R1", "candidate": "Automated Assays Laravel application and simulated adapters"}], "gaps": []}, "readiness": {"state": "blocked", "tier": "R4", "blocking_axis": "data", "blocked_on": "data:accession_absent", "axes": {"method": {"tier": "R4", "expressible": false, "required_operations": [], "missing_operations": [], "basis": "The reader quoted the method the paper names (Bayesian inference), but the corpus's method extractor could not map it onto a DSL operation, so the method is published but not expressible."}, "capability": {"tier": "R1", "capability_id": "capability:computational_analysis", "availability_state": "owned", "basis": "The computational analysis is owned. The physical bench the paper used is not, so a physical validation cannot be run here."}, "data": {"tier": "R4", "reachable": false, "accessions": [], "resolved_accessions": [], "statements": ["The data underlying this article are available in Zenodo, at https://doi.org/10.5281/zenodo.15149003."], "basis": "The paper names no accession to its source data, so the data has to come from the authors."}}, "can_run": {"dsl_operations": [], "assets": ["source:pmid:40408146"], "steps": ["run_analysis"]}, "must_build": {"dsl_operations": [], "converters": [], "readers": [], "capabilities": [], "data_gaps": ["data:geo:None"]}, "gaps": ["data:accession_absent"]}, "review": {"state": "partial", "machine_critique": {"kind": "extraction_review", "reader": {"model": "MiniMax-M3.1-Flash", "provider": "minimax", "provider_family": "minimax", "read_at": "2026-11-01T19:53:07Z", "independence": "single_reader"}, "evidence_check": {"method": "verbatim", "availability": "verbatim"}, "calls": 5, "usage": {"prompt_tokens": 6091, "completion_tokens": 2780, "cached_tokens": 264}}, "human_critique": null, "stages": [{"id": "extraction", "state": "complete", "reader": "MiniMax-M3.1-Flash", "provider": "minimax"}], "gaps": ["review.independent_reader", "review.machine_critique", "review.human_critique"]}, "execution": {"state": "absent", "status": "not_run", "mode": null, "runs": [], "gaps": ["execution.not_run"]}, "provenance": {"entities": [{"id": "pmid:40408146", "type": "paper", "label": "pmid:40408146"}, {"id": "source:pmid:40408146", "type": "manuscript", "label": "PMID 40408146 full text"}, {"id": "data:geo:None", "type": "dataset", "label": "GEO None"}], "activities": [{"id": "activity-reading-sci-2026-11-01", "type": "classification", "used": [{"id": "pmid:40408146", "type": "paper", "label": "pmid:40408146"}, {"id": "source:pmid:40408146", "type": "manuscript", "label": "PMID 40408146 full text"}, {"id": "data:geo:None", "type": "dataset", "label": "GEO None"}], "agent": "agent:corpus-assay-engine"}, {"id": "activity-read-40408146", "type": "extraction", "used": ["source:pmid:40408146"], "agent": "agent:minimax-reader"}, {"id": "activity-resolve-None", "type": "accession_resolution", "used": ["data:geo:None"], "agent": "agent:corpus-assay-engine"}], "agents": [{"id": "agent:corpus-assay-engine", "type": "software", "label": "Corpus assay engine"}, {"id": "agent:minimax-reader", "type": "software", "label": "MiniMax literature reader"}], "source_run_id": "reading-sci-2026-11-01", "dsl_catalogue_fingerprint": "343fb30756ba6ec3", "capability_table_fingerprint": "2cb3e42f047d2ecf", "snapshot_id": "ba34b49490d9bfaf"}, "lineage": {"parent_id": "pmid:40408146", "parent_hash": "sha256:c3a92bca6459d59206528bc208371e98f5ff13b2a41afeeda17b6105da617c2b", "fork_of": null, "generation": 1}, "gaps": ["execution.not_run", "method.reader_named_unmapped", "review.human_critique", "review.independent_reader", "review.machine_critique", "step:obtain_source_data blocked on data:accession_absent"]}