Metabolic tasks¶
MATLAB functions in RAVEN/tasks of the RAVEN toolbox. Help text is collected from the source of the tracked branch.
Functions¶
| Function | Summary |
|---|---|
checkTasks |
Perform a set of simulations as defined in a task file. |
parseTaskList |
Parse a task list file. |
Reference¶
checkTasks¶
Perform a set of simulations as defined in a task file.
This function is used for defining a set of tasks for a model to perform. The tasks are defined by defining constraints on the model, and if the problem is feasible, then the task is considered successful. In general, each row can contain one constraint on uptakes, one constraint on outputs, one new equation, and one change of reaction bounds. If more bounds are needed to define the task, then several rows can be used for each task.
Input arguments:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
struct
|
a model structure. |
required |
inputFile
|
char
|
a task list in Excel format. See the function parseTaskList for details (optional if taskStructure is supplied). |
required |
Name-value arguments:
| Name | Type | Description | Default |
|---|---|---|---|
printOutput
|
logical
|
true if the results of the test should be displayed (default true). |
|
printOnlyFailed
|
logical
|
true if only tasks that failed should be displayed (default false). |
|
getEssential
|
logical
|
true if the essential reactions should be calculated for all the tasks. This option is used with runINIT (default false). |
|
taskStructure
|
struct
|
structure with the tasks, as from parseTaskList. If this is supplied then inputFile is ignored. |
Output arguments:
| Name | Type | Description |
|---|---|---|
taskReport
|
struct
|
structure with the results, with fields:
|
essentialRxns
|
logical
|
MxN matrix with the essential reactions (M) for each task (N). An element is true if the corresponding reaction is essential in the corresponding task. Failed tasks and SHOULD FAIL tasks are ignored. This is used by the INIT algorithm (if tasks are supplied). If getEssential=false then essentialRxns=false(nRxns,nTasks). |
taskStructure
|
struct
|
structure with the tasks, as from parseTaskList. |
essentialFluxes
|
double
|
the fluxes of the essential rxns - same structure as essentialRxns. |
Examples:
[taskReport, essentialRxns, taskStructure] = checkTasks(model, inputFile, ...
printOutput, printOnlyFailed, getEssential, taskStructure);
parseTaskList¶
Parse a task list file.
Input arguments:
| Name | Type | Description | Default |
|---|---|---|---|
inputFile
|
char
|
a task list in either Excel (.xlsx, with a sheet named TASKS with all relevant content) or tab-delimited (.txt) format. The file may contain the following column headers (note, all rows starting with a non-empty cell are removed; the first row after that is considered the headers):
|
required |
Output arguments:
| Name | Type | Description |
|---|---|---|
taskStruct
|
struct
|
array of structures with the following fields:
|
Examples:
taskStruct = parseTaskList(inputFile);
Notes
This function is used for defining a set of tasks for a model to perform. The tasks are defined by defining constraints on the model, and if the problem is feasible, then the task is considered successful. In general, each row can contain one constraint on uptakes, one constraint on outputs, one new equation, and one change of reaction bounds. If more bounds are needed to define the task, then several rows can be used for each task. To perform the task use checkTasks or fitTasks.
The general metabolites "ALLMETS" and "ALLMETSIN[comps]" can be used as inputs or outputs in the similar manner to normal metabolites. This is a convenient way to, for example, allow excretion of all metabolites to check whether it is the synthesis of some metabolite that is limiting or whether it is the degradation of some byproduct. One important difference is that only the upper bounds are used for these general metabolites. That is, you can only say that uptake or excretion is allowed, not that it is required. This is to avoid conflicts where the constraints for the general metabolites overwrite those of the real ones.
See also
checkTasks, fitTasks