Skip to content

Commit a1ba114

Browse files
authored
Merge pull request #543 from SysBioChalmers/develop
RAVEN 2.9.1
2 parents bbb6b98 + 0f53134 commit a1ba114

File tree

359 files changed

+8401
-8184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

359 files changed

+8401
-8184
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Run tests
1414
id: matlab-test

INIT/ftINIT.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
% hpaData.tissues or transcrData.tissues
1414
% celltype cell type to score for. Should exist in either
1515
% hpaData.celltypes or transcrData.celltypes for this
16-
% tissue (opt, default is to use the max values
16+
% tissue (optional, default is to use the max values
1717
% among all the cell types for the tissue.
18-
% hpaData HPA data structure from parseHPA (opt if transcrData
18+
% hpaData HPA data structure from parseHPA (optional if transcrData
1919
% is supplied, default [])
20-
% transcrData gene expression data structure (opt if hpaData is
20+
% transcrData gene expression data structure (optional if hpaData is
2121
% supplied, default []). Used to be called arrayData.
2222
% genes cell array with the unique gene names
2323
% tissues cell array with the tissue names. The list may not
@@ -29,36 +29,36 @@
2929
% used when no measurement was performed
3030
% threshold a single value or a vector of gene expression
3131
% thresholds, above which genes are considered to be
32-
% "expressed". default = 1(opt, by default, the mean expression
32+
% "expressed". default = 1(optional, by default, the mean expression
3333
% levels of each gene across all tissues in transcrData
3434
% will be used as the threshold values)
3535
% singleCells binary value selecting whether to use the
3636
% single-cell algorithm to identify expressed genes.
3737
% If used, specify cell subpopulations in CELLTYPES
38-
% (opt, default [])
38+
% (optional, default [])
3939
% plotResults true if single cell probability distributions
40-
% should be plotted (opt, default = false)
40+
% should be plotted (optional, default = false)
4141
% metabolomicsData cell array with metabolite names that the model
42-
% should produce (opt, default [])
42+
% should produce (optional, default [])
4343
% INITSteps Specifies the steps in the algorithm. For more info,
4444
% see INITStepDesc and getINITSteps.
45-
% (opt, default getINITSteps(), which is the standard ftINIT).
45+
% (optional, default getINITSteps(), which is the standard ftINIT).
4646
% removeGenes if true, low-abundance genes will be removed from
4747
% grRules, unless they are the only gene associated
4848
% with a reaction, or a subunit of an enzyme complex
4949
% (see "removeLowScoreGenes" function for details).
5050
% If false, grRules will not be modified; however,
5151
% genes that were associated only with removed
5252
% reactions will not be present in the final model.
53-
% (opt, default true).
53+
% (optional, default true).
5454
% useScoresForTasks true if the calculated reaction scored should be
55-
% used as weights when fitting to tasks (opt, default
55+
% used as weights when fitting to tasks (optional, default
5656
% true)
5757
% paramsFT parameter structure as used by getMILPParams. This
5858
% is for the fitTasks step. For the INIT algorithm,
59-
% see params (opt, default [])
59+
% see params (optional, default [])
6060
% verbose if true, the MILP progression will be shown.
61-
% (opt, default false)
61+
% (optional, default false)
6262
%
6363
% model the resulting model structure
6464
% metProduction array that indicates which of the
@@ -86,7 +86,7 @@
8686
% if any are present. Use importModel(file,false) to import a model with
8787
% exchange metabolites remaining.
8888
%
89-
% Usage: [model, metProduction, addedRxnsForTasks, deletedRxnsInINIT, ...
89+
% Usage: [model, metProduction, addedRxnsForTasks, deletedRxnsInINIT, ...
9090
% fullMipRes] = ...
9191
% ftINIT(prepData, tissue, celltype, hpaData, transcrData, ...
9292
% metabolomicsData, INITSteps, removeGenes, useScoresForTasks, ...

INIT/ftINITFillGaps.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
% the reactants is unavailable or because one of the
1212
% products can't be further processed. If this
1313
% parameter is true, only the first type of
14-
% unconnectivity is considered (opt, default false)
14+
% unconnectivity is considered (optional, default false)
1515
% useModelConstraints true if the constraints specified in the tModel
1616
% structure should be used. If false then reactions
1717
% included from the template tModel(s) so that as many
1818
% reactions as possible in tModel can carry flux
19-
% (opt, default false)
20-
% supressWarnings false if warnings should be displayed (opt, default
19+
% (optional, default false)
20+
% supressWarnings false if warnings should be displayed (optional, default
2121
% false)
2222
% rxnScores scores for each of the reactions in the
2323
% reference tModel.
@@ -52,7 +52,7 @@
5252
% of reactions that have to be included in order for the tModel to produce
5353
% biomass.
5454
%
55-
% Usage: [newModel, exitFlag]=...
55+
% Usage: [newModel, exitFlag]=...
5656
% fillGaps(tModel,models,allowNetProduction,...
5757
% supressWarnings,rxnScores,params)
5858

INIT/ftINITFillGapsForAllTasks.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
% model model structure
99
% refModel reference model from which to include reactions
1010
% inputFile a task list in Excel format. See the function
11-
% parseTaskList for details (opt if taskStructure is
11+
% parseTaskList for details (optional if taskStructure is
1212
% supplied)
1313
% printOutput true if the results of the test should be displayed
14-
% (opt, default true)
14+
% (optional, default true)
1515
% rxnScores scores for each of the reactions in the reference
1616
% model. Only negative scores are allowed. The solver will
1717
% try to maximize the sum of the scores for the included
18-
% reactions (opt, default is -1 for all reactions)
18+
% reactions (optional, default is -1 for all reactions)
1919
% taskStructure structure with the tasks, as from parseTaskList. If
2020
% this is supplied then inputFile is ignored
2121
% params parameter structure as used by getMILPParams
@@ -36,7 +36,7 @@
3636
% all tasks at once. This means that the order of the tasks could influence
3737
% the result.
3838
%
39-
% Usage: [outModel, addedRxns]=fitTasks(model,refModel,inputFile,printOutput,...
39+
% Usage: [outModel, addedRxns]=fitTasks(model,refModel,inputFile,printOutput,...
4040
% rxnScores,taskStructure,params)
4141

4242
if isempty(rxnScores)

INIT/ftINITFillGapsMILP.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
% toMinimize either a cell array of reaction IDs, a logical vector
1212
% with the same number of elements as reactions in the model,
1313
% of a vector of indexes for the reactions that should be
14-
% minimized (opt, default model.rxns)
15-
% params parameter structure as used by getMILPParams (opt)
14+
% minimized (optional, default model.rxns)
15+
% params parameter structure as used by getMILPParams (optional)
1616
% scores vector of weights for the reactions. Negative scores
1717
% should not have flux. Positive scores are not possible in this
1818
% implementation, and they are changed to max(scores(scores<0)).
1919
% Must have the same dimension as toMinimize (find(toMinimize)
20-
% if it is a logical vector) (opt, default -1 for all reactions)
20+
% if it is a logical vector) (optional, default -1 for all reactions)
2121
% verbose if true, the MILP progression will be shown.
2222
%
2323
% x the corresponding fluxes for the full model
@@ -30,7 +30,7 @@
3030
% NOTE: Uses 1000 mmol/gDW/h as an arbitary large flux. Could possibly
3131
% cause problems if the fluxes in the model are larger than that.
3232
%
33-
% Usage: [x,I,exitFlag]=getMinNrFluxes(model, toMinimize, params, scores)
33+
% Usage: [x,I,exitFlag]=getMinNrFluxes(model, toMinimize, params, scores)
3434

3535
% glpk solver as implemented by COBRA does not work well for MILP.
3636
global CBT_MILP_SOLVER

INIT/ftINITInternalAlg.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
% scores are reactions to exclude. Rxns set to 0 are excluded
99
% from the problem.
1010
% metData boolean matrix with mets as rows and rxns as columns
11-
% saying which reaction produces each detected met (opt, default [])
11+
% saying which reaction produces each detected met (optional, default [])
1212
% essentialRxns cell array of reactions that are essential and that
1313
% have to be in the resulting model. This is normally
1414
% used when fitting a model to task (see fitTasks)
@@ -50,7 +50,7 @@
5050
% This function is the actual implementation of the algorithm. See
5151
% ftINIT for a higher-level function for model reconstruction.
5252
%
53-
% Usage: [deletedRxns,metProduction,res,turnedOnRxns,fluxes]=runINIT9(model,...
53+
% Usage: [deletedRxns,metProduction,res,turnedOnRxns,fluxes]=runINIT9(model,...
5454
% rxnScores,presentMets,essentialRxns,prodWeight,allowExcretion,...
5555
% remPosRev,params)
5656

INIT/getExprForRxnScore.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
% define the reaction scores of rxns, but need to send in gene expression.
77
%
88
% scores Vector of scores to convert
9-
% threshold Gene threshold (opt, default 1)
9+
% threshold Gene threshold (optional, default 1)
1010
%
1111
% expr The resulting gene expression vector.
1212
%
13-
% Usage: expr = getExprForRxnScore(scores, threshold)
13+
% Usage: expr = getExprForRxnScore(scores, threshold)
1414

1515
if nargin < 2
1616
threshold = 1;

INIT/getINITModel.m

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
% hpaData.tissues or arrayData.tissues
1717
% celltype cell type to score for. Should exist in either
1818
% hpaData.celltypes or arrayData.celltypes for this
19-
% tissue (opt, default is to use the best values
19+
% tissue (optional, default is to use the best values
2020
% among all the cell types for the tissue. Use [] if
2121
% you want to supply more arguments)
22-
% hpaData HPA data structure from parseHPA (opt if arrayData is
22+
% hpaData HPA data structure from parseHPA (optional if arrayData is
2323
% supplied, default [])
24-
% arrayData gene expression data structure (opt if hpaData is
24+
% arrayData gene expression data structure (optional if hpaData is
2525
% supplied, default [])
2626
% genes cell array with the unique gene names
2727
% tissues cell array with the tissue names. The list may not be
@@ -32,33 +32,33 @@
3232
% used when no measurement was performed
3333
% threshold a single value or a vector of gene expression
3434
% thresholds, above which genes are considered to be
35-
% "expressed". (opt, by default, the mean expression
35+
% "expressed". (optional, by default, the mean expression
3636
% levels of each gene across all tissues in arrayData
3737
% will be used as the threshold values)
3838
% singleCells binary value selecting whether to use the
3939
% single-cell algorithm to identify expressed genes.
4040
% If used, specify cell subpopulations in CELLTYPES
41-
% (opt, default [])
41+
% (optional, default [])
4242
% plotResults true if single cell probability distributions
43-
% should be plotted (opt, default = False)
43+
% should be plotted (optional, default = False)
4444
% metabolomicsData cell array with metabolite names that the model
45-
% should produce (opt, default [])
45+
% should produce (optional, default [])
4646
% taskFile a task list in Excel format. See parseTaskList for
47-
% details (opt, default [])
47+
% details (optional, default [])
4848
% useScoresForTasks true if the calculated reaction scored should be used as
49-
% weights in the fitting to tasks (opt, default true)
49+
% weights in the fitting to tasks (optional, default true)
5050
% printReport true if a report should be printed to the screen
51-
% (opt, default true)
51+
% (optional, default true)
5252
% taskStructure task structure as from parseTaskList. Can be used
5353
% as an alternative way to define tasks when Excel
54-
% sheets are not suitable. Overrides taskFile (opt,
54+
% sheets are not suitable. Overrides taskFile (optional,
5555
% default [])
5656
% params parameter structure as used by getMILPParams. This is
5757
% for the INIT algorithm. For the the MILP problems
58-
% solved to fit tasks, see paramsFT (opt, default [])
58+
% solved to fit tasks, see paramsFT (optional, default [])
5959
% paramsFT parameter structure as used by getMILPParams. This is
6060
% for the fitTasks step. For the INIT algorithm, see
61-
% params (opt, default [])
61+
% params (optional, default [])
6262
%
6363
%
6464
% Output:
@@ -102,7 +102,7 @@
102102
% if any are present. Use importModel(file,false) to import a model with
103103
% exchange metabolites remaining.
104104
%
105-
% Usage: [model, metProduction, essentialRxnsForTasks, addedRxnsForTasks,...
105+
% Usage: [model, metProduction, essentialRxnsForTasks, addedRxnsForTasks,...
106106
% deletedDeadEndRxns, deletedRxnsInINIT, taskReport]=...
107107
% getINITModel(refModel, tissue, celltype, hpaData, arrayData,...
108108
% metabolomicsData, taskFile, useScoresForTasks, printReport,...

INIT/getINITSteps.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%
1010
% metsToIgnore Structure describing mets that can be removed from the model
1111
% before running ftINIT, such as water etc.
12-
% (opt, default [])
12+
% (optional, default [])
1313
% simpleMets
1414
% mets Names of metabolites to remove
1515
% compsToKeep Compartments for which metabolites should be kept.
@@ -31,11 +31,11 @@
3131
% 'full' 1-step run - similar to the old tINIT version but
3232
% without simplifications. Accurate, but very slow.
3333
% This is mainly used for testing purposes.
34-
% (opt, default '1+1')
34+
% (optional, default '1+1')
3535
%
3636
% steps Cell array of steps, used as input to ftINIT
3737
%
38-
% Usage: steps = getINITSteps(metsToIgnore, series)
38+
% Usage: steps = getINITSteps(metsToIgnore, series)
3939
if nargin < 1
4040
metsToIgnore = [];
4141
end

INIT/mergeLinear.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
% 0 means a reaction was not merged.
1717
% reversedRxns Vector of booleans, saying for each rxn if it is reversed in the combined rxns.
1818
%
19-
% Usage: [reducedModel,origRxnIds,groupIds]=mergeLinear(model,noMergeRxns)
19+
% Usage: [reducedModel,origRxnIds,groupIds]=mergeLinear(model,noMergeRxns)
2020

2121

2222
reducedModel=model;

INIT/prepINITModel.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
% Mouse-GEM, etc.
99
% taskStruct The essential tasks. Can be loaded with for example
1010
% taskStruct = parseTaskList('../data/metabolicTasks_Essential.txt');
11-
% spontRxnNames The spontaneous rxns. (opt, default {})
11+
% spontRxnNames The spontaneous rxns. (optional, default {})
1212
% convertGenes If true the genes are converted to gene names (from
13-
% ENSEMBL) (opt, default false)
13+
% ENSEMBL) (optional, default false)
1414
% customRxnsToIgnore These reactions can be ignored in the ignore mask
15-
% (specifying b7=1) (opt, default = {})
15+
% (specifying b7=1) (optional, default = {})
1616
% extComp Name of the external compartment, typically 's' or 'e'. This
17-
% is used for identifying exch and import rxns (opt, default = 'e')
17+
% is used for identifying exch and import rxns (optional, default = 'e')
1818
% prepData The resulting prepData structure which is used as input to ftINIT
1919
% skipScaling If true the scaling step is not run on the minimal model. The
2020
% scaling is there to remove large differences between the
@@ -27,7 +27,7 @@
2727
% where the solution is infeasible, it may be worth trying to turn off
2828
% the scaling. Note that it is only the minModel that is scaled,
2929
% the scaling will not be present in the final model.
30-
% Default: (opt, default = false)
30+
% Default: (optional, default = false)
3131
%
3232
% Usage: prepData = prepINITModel(origRefModel, taskStruct, spontRxnNames, convertGenes, customRxnsToIgnore, extComp)
3333

INIT/removeLowScoreGenes.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
%
4444
% isozymeScoring Method used to combine the scores of multiple isozymes;
4545
% 'min', 'max', 'median', or 'average'.
46-
% (Opt, default 'max')
46+
% (optional, default 'max')
4747
%
4848
% complexScoring Method used to combine the scores of enzyme complex
4949
% subunits: 'min', 'max', 'median', or 'average'.
50-
% (Opt, default 'min')
50+
% (optional, default 'min')
5151
%
5252
% Outputs:
5353
%

INIT/rescaleModelForINIT.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%
1212
% model the model to be modified (input and output)
1313
% maxStoichVal all reactions with stoichiometric coefficent higher than this
14-
% will be scaled down. (opt, default 250)
14+
% will be scaled down. (optional, default 250)
1515

1616
if (nargin < 2)
1717
maxStoichDiff = 25;

0 commit comments

Comments
 (0)