Skip to main content

A python-based implementation for the context-specific metabolic model extraction methods from Vlassis et al. 2014

Project description

pyfastcore

A python implementation of the context-specific model extraction method FastCore by Vlassis et al. (2014)

  • Vlassis, N., Pacheco, M. P., & Sauter, T. (2014). PLoS Computational Biology, 10(1) [Full Article]

INSTALATION

You can install pyfastcore using: python setup.py install

of via pip: pip install pyfastcore

USAGE EXAMPLE

from cobra.test import create_test_model
from pyfastcore import Fastcore

# Loading a toy model of E. coli from cobra.test package
model = create_test_model('textbook')
# Define the list of core reactions
core_reactions = ['Biomass_Ecoli_core', 'ATPM']
# Setting the penalty of exchange fluxes to 0
penalties = {}
for r in model.exchanges:
    penalties[r.id] = 0

# Creating a fastcore solver instnace
fc_builder = Fastcore(model, core_reactions,
                      penalties=penalties,
                      default_penalty=10,
                      debug_mode=True)

# Rnunning fastcore
fc_builder.fast_core()

# checking the list of reaction in the consistent network found
consistent_subnetwork = fc_builder.consistent_subnetwork
print("Consistent subnetworksize set size", len(consistent_subnetwork))
print("Context specific core:")
print(consistent_subnetwork)

# creating a cobra model for the consistent network found
print(f"Building context-specific model for {model.id}")
cs_model = fc_builder.build_context_specific_model()

# Running and FBA using subnetwork model 
print("Running FBA on CS-model")
sol = cs_model.optimize()
print(cs_model.summary())

Citation

If you use this package cite:

  • Ponce-De-Leon, M. et al. (2015) Consistency Analysis of Genome-Scale Models of Bacterial Metabolism: A Metamodel Approach. PloS one, 10, e0143626.

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

pyfastcore-0.0.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

pyfastcore-0.0.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfastcore-0.0.6.tar.gz.

File metadata

  • Download URL: pyfastcore-0.0.6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pyfastcore-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ea370237cd541f02d7563e6c2082dc712b916727c1e7481147885e6843f2a83b
MD5 ee3d1752b8435433e97ad91075189d54
BLAKE2b-256 3d41f1c98ad79d1674c25a5edf248c13afd23a567cf9e207265a59249fed5a72

See more details on using hashes here.

File details

Details for the file pyfastcore-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyfastcore-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pyfastcore-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e2fd457d7c75b632cf39a829fc6c96638045303ca6c255cdd7ac65c1c98f2e36
MD5 fb30b6aa89b373a2009767c2be2cbef4
BLAKE2b-256 8e738a9da4b8718d0f0a68324ca2a4492d17aaf4ce97bd6ad009c07e735fd884

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