No project description provided
Project description
MiSoS(oup)
Minimal Supplying Community Search (misosoup) is a command line tool
designed to search for minimal microbial communities, wherein every member is
essential for the community's persistence within a given medium. Its primary
functions include:
- Identifying minimal communities within a specified medium.
- Identifying minimal "supplying" communities within a medium, where each member is necessary for the growth of a focal strain or species of interest.
To utilize misosoup, users provide a set of genome-scale metabolic models,
each representing a potential member of the community. The program then employs
constraint-based optimizations to determine minimal communities. These
optimizations assume a metabolic steady-state, akin to Flux Balance Analysis.
Once computations are complete, misosoup outputs information about community
members, their respective growth rates, as well as their metabolic consumptions
and secretions, presented in a format both readable by humans and parseable by
software.
Details
To find minimal microbial communities misosoup solves a repeated sequence of
optimization problems using MILP formulations:
- Minimize the number of community member (see Zelezniak, et al. PNAS doi:10.1073/pnas.1421834112).
- Fix the active community members and check the feasibility of the entire community.
- Optionally: Maximize community biomass (sum of individual growth rates).
- Optionally: Perform an optimization to reflect parsimonious enzyme usage (see Lewis, et al. Mol Syst Bio doi:10.1038/msb.2010.47).
Install MiSoS(soup)
misosoup requires a version of Python >=3.9 and <3.12.
The latest stable version of misosoup is available through pip and hence it can be installed executing:
pip install misosoup
Dependencies
misosoupuses theGurobyoptimizer that is free for academic use but does require a license.- Academic licenses can be obtained on the gurobi license page
- Precise instructions on how to obtain and setup the gurobi licenses can be found on the gurobi website.
Usage
After installation, detailed usage instructions can be found with:
misosoup -h
To use misosoup with its default settings, you can use the following command:
misosoup MODEL_PATH/*.xml --output OUTPUT_FILE --media MEDIA_FILE --strain STRAIN
Arguments
MODEL_PATH: indicates the path to the directory where the metabolic models are described. Strains with metabolic models included in this directory will be considered as potential members in the minimal communities. The models should be in sbml format and follow the same naming conventions (e.g. if glucose's id in one model is 'glc__D', the same id should be used in the other models).--output- Use OUTPUT_FILE for output in yaml format. If it is not given, the results will be printed to stdout.
--media- Load media from MEDIA_FILE. An example file with a correct format to
introduce a media composition can be found in
examples/.
- Load media from MEDIA_FILE. An example file with a correct format to
introduce a media composition can be found in
--strain- Indicates the focal STRAIN model id. If no strain is provided,
misosoupcomputes minimal communities.
- Indicates the focal STRAIN model id. If no strain is provided,
Additional arguments
misosoup can be used with additional arguments.
misosoup MODEL_PATH/*.xml --output OUTPUT_FILE --media MEDIA_FILE --strain STRAIN --parsimony --community-size COMMUNITY_SIZE --minimal-growth MINIMAL_GROWTH
--parsimony- If this flag is used the algorithm will return the solution that minimizes the total flux. This does not affect the community members but can alter what each member consumes and secretes.
--community-size- Instead of looking for all communities, find all communities up to size COMMUNITY_SIZE
--minimal-growth- Set the MINIMAL_GROWTH rate of strains. Every strain that makes up a community needs to satisfy this minimal growth constraint. The default growth rate is 0.01 (1/h).
Output file
As output misosoup will generate a yaml file with the following general
structure:
medium:
strain|min:
- <Solution1>
- <Solution2>
The solutions indicated above contain two entries, the first is a dictionary
with the community composition, and the second is a dictionary with the growth
rates and fluxes through exchange reactions of the respective optimized
solution. An example of an output file can be found in examples/.
Example
This package includes an example directory containing models and media
specifications, enabling users to perform a straightforward analysis using
misosoup. The example demonstrates how to identify minimal microbial
communities that utilize acetate as the sole carbon source. The results of this
analysis are pre-generated and available in the directory for reference.
Running the Example
To execute the analysis, navigate to the example directory and use the
following command:
cd example/marine/
misosoup ./strains/*.xml --output ./output.yaml --media media.yaml --strain A1R12 --media-select ac
This command instructs misosoup to analyze the specified microbial strains
for their ability to support the growth of strain
A1R12 in a Minimal Basal Medium
(MBM) with acetate (ac) as the exclusive carbon source.
Analysis Results
The simulation results, detailed in output.yaml, reveal two potential
microbial communities capable of supporting A1R12 growth:
- Solution 1: Community comprising A1R12 and I2R16, indicating a symbiotic relationship sufficient for growth on acetate.
- Solution 2: Community comprising A1R12 and I3M07. Detailed analysis of
this community shows:
- Both strains produce carbon dioxide as a by-product, with strain-specific
CO2 fluxes of
R_EX_co2_e_A1R12_i: 0.564for A1R12 andR_EX_co2_e_I3M07_i: 0.1312for I3M07. - The total community-level carbon dioxide production is quantified by the
flux
R_EX_co2_e: 1.695, highlighting the combined metabolic activity.
- Both strains produce carbon dioxide as a by-product, with strain-specific
CO2 fluxes of
These solutions showcase misosoup's ability to predict minimal microbial
communities based on specific metabolic requirements, facilitating targeted
research and application in microbial ecology and synthetic biology.
Citation
If you use misosoup, please cite our paper.
Workflows
snakemake is a useful tool to execute many experiments and gather results.
See misosoup Workflow Template
on how to use it.
Development
Any contributions are welcome.
MIT License
Copyright (c) 2021 Nicolas Ochsner
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 misosoup-2.3.2.tar.gz.
File metadata
- Download URL: misosoup-2.3.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2326ad5814610f78f215cda520478cc6a9961b0e6a03dffd4b6c386aa255ca26
|
|
| MD5 |
f206aecd472a35db042e6c4c0303a45d
|
|
| BLAKE2b-256 |
779f205d357527609f7952c989ab2b70acb88d662b630fa33aa3f8394aa39c0b
|
File details
Details for the file misosoup-2.3.2-py3-none-any.whl.
File metadata
- Download URL: misosoup-2.3.2-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962597118bf4570c41e202062401fdf460763ff81cc8db47a9981bde4d1fb034
|
|
| MD5 |
ae0dcb553a9dc91b4d7dfc7375ed2c49
|
|
| BLAKE2b-256 |
23e37c8e9a389adf90189bd8b4598bf4a77b6a6b2e699c47c6f0d49eaa3db38a
|