Skip to main content

findCP CLI package

Project description

PyPI version License: GPL v3 CI-CD Quality Gate Status standard-readme compliant Code style: black

findCPcli - find ChokePoint reactions in genome-scale metabolic models

findCPcli is a command line python-tool for the computation of chokepoint reactions in genome-scale metabolic models. The main purpose of the tool is to compute chokepoints by taking into account both the topology and the dynamic information of the network. In addition to the computation of chokepoints, findCPcli can compute and remove dead-end metabolites, find essential reactions and update the flux bounds of the reactions according to the results of Flux Variability Analysis.

findCPcli takes as input an SBML files of genome-scale models, and provides as output a spreadsheet file with the results of the chokepoint computation.

Chokepoint reactions: Chokepoint reactions are those reactions that are either the unique consumer or the only producer of a given metabolite. findCPcli makes use of the flux bounds of the model to determine consumer and producer reactions, and in turn, to compute chokepoint reactions.

Dead-End Metabolites (DEM): Dead-end metabolites are those metabolites that are not produced or consumed by any reaction.

Essential Reactions: A reaction is considered an essential reaction if its deletion, this is, restricting its flux to zero, causes the objective (e.g. cellular growth) to be zero.

Figure: Chokepoint reactions and dead-end metabolites example: Chokepoint reactions and Dead-end metabolites example

The computation of chokepoints can also be exploited programmatically via the Low Level API which is based on COBRApy.

Table of Contents

License

findCPcli is released under GPLv3 license.

For citation purposes please refer to:

Oarga et al. Growth Dependent Computation of Chokepoints in Metabolic Networks. International Conference on Computational Methods in Systems Biology. Springer, Cham, 2020. https://doi.org/10.1007/978-3-030-60327-4_6

Install

findCPcli can be installed via pip package manager:

$ pip install findCPcli

Documentation

Documentation is available at readthedocs and can also be downloaded. The previous links include examples and descriptions of the operations that can be performed with the tool.

Tool parameters

More information about the parameters of the tool can be obtained by executing findCPcli -h. For a detailes description of the operations see the documentation.

$ findCPcli [-h] [-v] [-l] -i <input file> [-o <output file>]
                 [-cp <output file>] [-swD <output file>] [-sF <output file>]
                 [-swDF <output file>] [-objective <reaction id>]
                 [-fraction <fraction>]
                       
optional arguments:
  -h, --help           show this help message and exit
  -v, --verbose        Print feedback while running.
  -l, --license        View license info.
  -i <input file>      Input metabolic model. Allowed file formats: .xml .json
                       .yml
  -o <output file>     Output spreadsheet file with results. Allowed file
                       formats: .xls .xlsx .ods
  -cp <output file>    Output spreadsheet file with growth dependent
                       chokepoints. Allowed file formats: .xls .xlsx .ods
  -swD <output file>   Save output model without Dead End Metabolites. Allowed
                       file formats: .xml .json .yml
  -sF <output file>    Save output model with reactions bounds updated with
                       Flux Variability Analysis. Allowed file formats: .xml
                       .json .yml
  -swDF <output file>  Save output model with reactions bounds updated with
                       Flux Variability Analysis and without Dead End
                       Metabolites. Allowed file formats: .xml .json .yml
  -objective <reaction id>
                        Reaction id to be used as objective function with Flux
                        Balance Analysis
  -fraction <fraction>  Fraction of optimum growth to be used in Flux
                        Variability Analysis. Value must be beetwen 0.0 and
                        1.0

Low Level API

The computation of chokepoints can also be exploited via findCPcore which is used by findCPcli. findCPcore documentation can be found at readthedocs.

Example of network refinement and chokepoint computation:

from findCPcore import CobraMetabolicModel

model = CobraMetabolicModel("aureus.xml")

# update flux bounds with FVA
model.fva(update_flux=True)

# compute chokepoints
model.find_chokepoints()

# get chokepoints
model.chokepoints()

Maintainers

@alexOarga

Contributing

Feel free to dive in! Open an issue or submit PRs.

Standard Readme follows the Contributor Covenant Code of Conduct.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findCPcli-0.1.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

findCPcli-0.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file findCPcli-0.1.0.tar.gz.

File metadata

  • Download URL: findCPcli-0.1.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for findCPcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 faa8e73d40cac4d4c5d73f34521f29a591c12460ae9ad7a800bba7e60625a9b1
MD5 39a4ec353ef890fd158ab38356eeeac3
BLAKE2b-256 7f88e82186e6672015f0a9af6c3d6a3ab291ff89b3fff7d8a19e7e33adc49f19

See more details on using hashes here.

File details

Details for the file findCPcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: findCPcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for findCPcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48608f5dbf7a097483cef6269e971a013d7257262d45424081f5b3c9d220ab3c
MD5 fad20f65bc5a6bf567ca6b4979ce41ef
BLAKE2b-256 ad6c0e730a3a792ad5c7632d1635a584658f14d8da219c318450b704f95e3903

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page