Skip to main content

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.

Metadata

Release files for pyfastcore 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfastcore 0.0.6
File Size Uploaded Provenance Actions
pyfastcore-0.0.6.tar.gz 8.7 kB Without provenance Details for pyfastcore-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyfastcore 0.0.6
File Interpreter ABI Platform Actions
pyfastcore-0.0.6-py3-none-any.whl Python 3 none any Details for pyfastcore-0.0.6-py3-none-any.whl

Total release size: 17.4 kB

Release files / pyfastcore-0.0.6.tar.gz

Download URL pyfastcore-0.0.6.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ea370237cd541f02d7563e6c2082dc712b916727c1e7481147885e6843f2a83b
BLAKE2b-256 checksum
How to use checksums
3d41f1c98ad79d1674c25a5edf248c13afd23a567cf9e207265a59249fed5a72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / pyfastcore-0.0.6-py3-none-any.whl

Download URL pyfastcore-0.0.6-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2fd457d7c75b632cf39a829fc6c96638045303ca6c255cdd7ac65c1c98f2e36
BLAKE2b-256 checksum
How to use checksums
8e738a9da4b8718d0f0a68324ca2a4492d17aaf4ce97bd6ad009c07e735fd884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for pyfastcore 0.0.6

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.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page