Skip to content

Toepfer-Lab/Cobra2D

Repository files navigation

Generic badge Tests GitHub last commit GitHub pull requests

A Python package that extends the COBRApy package with functions to represent time periods and organs by copying the original model for every organ time combination, which we refer to as phases. This way, different time ranges and customizable volumes of organs can be defined. Furthermore, a new model can be created automatically based on the specified organs and time periods for the simulation.

General process:

  • Define time ranges and organs
  • Individualization of single Phases
    • Volume adjustment
    • Time frame adjustments
    • Defining linkers
    • Adding special constraints for individual phases
  • Creation of a new model containing all phases with their associated constraints

For this process, this package provides functionalities to not only simplify this process, but also to easily save and share the defined settings with other people.

Possible usage of this package

There are two ways to use this package. Either you use the functions implemented in Python to define phases and constraints or you create an XML file that can be read in and used to create a new model.

Examples

Examples of the use of this package can be found in the examples folder. There are examples that demonstrate the functions but also an XML file that shows how the parameters are stored.

Visualization

The package also provides the possibility to get an overview of the created settings with the help of an animated or unanimated graphic.

ConInteractive.gif

Installation

After cloning the repository, the package can be installed in the current Python environment using pip. So, in a terminal, the package can be installed with the following commands.

git clone https://github.com/Toepfer-Lab/model_duplication

cd model_duplication

pip install .

About

Packet to simplify the creation of COBRApy models, which consist of sub-models with specific periods of time. Also contains saving and visualization methods of such sub-model, time period combinations.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors