TIPF is a constraint based modeling framework constructed out of three consecutive modules, aiming to elucidate the trophic interactions in native microbial communities. Here we provide the scripts for each module to reproduce the analyses as described in Ginatt, A et al. 2024; https://doi.org/10.7554/eLife.94558.3. The framework is comprised of three modules:
- Microbial Community Succession Module (MCSM)
- Network module (NETWORK)
- Sub-network motifs module (PATHS)
MCSM is the first module in the framework, simulating the growth and secretion profiles of models growing the in the rhizosphere environment.
The Network module takes the output of the MCSM module (community GSMMS growing in the rhizosphere environment, and their secretion profiles) to generate data regarding the potential metabolic interactions they sustain.
The last module in the framework uses the output of the NETWORK module (i.e., a network of potential trophic interactions), and breaks it into sub-networks (paths), representing various specific trophic interactions.
Clone repository using git clone
Or download zip and extract repository
- [python==3.8.18]
- [pandas==1.5.1]
- [networkx==3.1.0]
- [pyarrow==13.0.0]
- [cobra==0.26.3]
# Create virtural env and install dependencies #
conda env create -f TIPF_env.yml
-
TIPF directory structure:
- media - root environment and external phosphate for working example.
- models - 243 GSMMs for working example.
- target - output directory for results.
- MCSM.py - script for MCSM module.
- NETWORK.py - script for Network module.
- PATHS.py - script for Paths module.
- paths output dir - /traget/paths/
-
run TIPF:
- setup base_dir in modules scripts to full path to folder where repo was cloned.
- activate TIPF_env
- run MCSM.py
- run NETWORK.py
- run PATHS.py
- run TIPF.py - wrapper script for all modules.
# Change base_dir = '/Path/To/TIPF/' in MCSM.py, NETWORK.py and PATHS.py
cd Trophic_Interactions_Predicting_Framework
conda activate TIPF_env
# Run a single warper script TIPF.py
python TIPF.py
# Or run indvidual TIPF modules in succession
# Microbial Community Succession Module (MCSM)
python MCSM.py
# Network module (NETWORK)
python NETWORK.py
# Sub-network motifs module (PATHS)
python PATHS.py
Alon Ginatt
Gon Carmi
Shiri Freilich
Ginatt, A et al. 2024. https://doi.org/10.7554/eLife.94558.3
This work was funded by the United States - Israel Binational Agricultural Research and Development Fund (BARD) [grant number [US-5390-21]
