CommModelPy
Description
CommModelPy is a collection of Python dataclasses and associated functions which aim to help one in generating stoichiometric metabolic models of communities which consist of one or multiple species. All dataclasses and functions are based on cobrapy.
The underlying methods for the generation and analysis of the community models is explained in more detail in CommModelPy's source code documentation.
An exemplary usage of CommModelPy is given in its publiation (Bekiaris & Klamt, in submission).
Installation procedure
Option 1: As PyPI module
You can install CommModelPy as Python module from PyPI using pip:
pip install commmodelpy
Afterwards, you can use CommModelPy just as any other Python module using import in your Python session/script:
import commmodelpy
In order to import CommModelPy's main script with all major dataclasses and functions and which is called "commmodelpy.py", you can import it using
import commmodelpy.commmodelpy
Option 2: Direct download
If you don't want to use CommModelPy as PyPI module, you can also download this repository directly. The main script file is the commmodelpy.py Python script in the "commmodelpy" subfolder.
Optional external package: eQuilibrator API
If you want to run the reaction dG0 calulations performed in the course of CommModelPy's publication results (see next chapter), you also have to install the eQuilibrator API (not affiliated with CommModelPy or its developers) which is not included here due to its large download size of >1GB. You can download the API as follows from PyPI:
pip install equilibrator-api
Repository structure
- The actual commmodelpy pip package can be found in the "commmodelpy" subfolder, where "commmodelpy.py" contains all relevant functions and dataclasses.
- All Python scripts which were used in CommModelPy's publication (including the briefly mentioned EColiCore2-compressed and ATP transport cost versions), which use CommModelPy's function for community models without defined growth and with fixed species ratios, can be found in the "publication_runs" subfolder, which is in the "commmodelpy" subfolder. The scripts in the local subfolder "toy_model" contain the script for the generation of the toy model shown in the publication. The scripts in the local subfolder "ecoli_models" contain the generation of dG0 data using the eQuilibrator API as well as the CommModelPy-assisted generation of iML1515 and EcoliCore2 single-species community models. A complete call of all E. coli model scripts in the right order is given by the "execute_publication_ecoli_model_scripts.py" script in the main folder, a call of the toy model scripts is given by the "execute_publication_toy_model_script.py" script in the main folder.
- An exemplary usage of CommModelPy with its function with a defined fixed growth rate and free species ratios can be found in the "balanced_growth_example" subfolder. A call of the relevant script is given in the "execute_balanced_growth_example.py" script in the main folder.
Documentation
A documentation of CommModelPy's features and functions can be found in the "docs/commmodelpy/" subfolder of this repository. The documentation's starting point is "index.html". The whole documentation was generated using pdoc3.
You can also access CommModelPy's documentation using Python's help function after importing CommModelPy, e.g. for the whole module:
help(commmodelpy)
Publication
CommModelPy is described and used in the following publication:
License
CommModelPy is free and open source, using the Apache License, Version 2
Metadata
Release files for commmodelpy 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| commmodelpy-0.0.3.tar.gz | 20.3 kB | Without provenance | Details for commmodelpy-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| commmodelpy-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for commmodelpy-0.0.3-py3-none-any.whl |
Total release size: 40.1 kB
Release files / commmodelpy-0.0.3.tar.gz
| Download URL | commmodelpy-0.0.3.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22b300454d940fb16b4e7ba2172a05568e2448134118088d8cc211ff734347ba
|
|
BLAKE2b-256 checksum How to use checksums |
7f036620b4ebb6a85e9a51940d5c5214cb1c9494362960392a86c877c797f942
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / commmodelpy-0.0.3-py3-none-any.whl
| Download URL | commmodelpy-0.0.3-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de049293de9490fb5838145d942b5883c99f969b648184c091a7d5b63885f647
|
|
BLAKE2b-256 checksum How to use checksums |
19a8a1fef3367e14c67176a334fffbf587d5a1eac7aa108b8c506dbe58224a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for commmodelpy 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.