Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
fdadecd
feat: deprecate updateProtPool and mergeDLKcatAndFuzzyKcats
edkerk Nov 11, 2026
c926af3
feat: deprecate adapter classes as project format
edkerk Nov 11, 2026
40c6ac8
feat: predict DLKcat kcats with OpenKineticsPredictor by default
edkerk Nov 11, 2026
b3b5455
doc: describe the ecModel input without the GECKO 3 format
edkerk Nov 11, 2026
b50648f
doc: name the standard and the advanced kcat tuning
edkerk Nov 11, 2026
9d5caee
fix: keep the OpenKineticsPredictor API key file out of git
edkerk Nov 11, 2026
b41cb82
test: cover the via default, deprecation warnings and project gitignore
edkerk Nov 11, 2026
b1e05e5
doc: point the see-also lines to mergeKcats and assignKcats
edkerk Nov 11, 2026
6afc218
doc: correct function help and messages that misdescribe the code
edkerk Nov 11, 2026
f1903cf
fix: return an empty complexInfo from getComplexData without a taxono…
edkerk Nov 11, 2026
5aa4042
fix: raise ecFSEOF:noRange when the production has no range to scan
edkerk Nov 11, 2026
ab7ffc6
fix: check the target after the last allowed greedy relaxation
edkerk Nov 11, 2026
8240277
feat: return the relaxed model from relaxProteomicsGreedy
edkerk Nov 11, 2026
853cbc4
fix: raise evotune:noData when there is no evotune data
edkerk Nov 11, 2026
4b4e646
fix: raise an error in sigmaFitter for a growth rate that is not posi…
edkerk Nov 11, 2026
8435903
fix: keep the extension of the loadConventionalGEM filename option
edkerk Nov 11, 2026
d4a3509
fix: print light-model tuning progress before the target check
edkerk Nov 11, 2026
1616ba8
fix: raise an error in getConcControlCoeffs for an infeasible model
edkerk Nov 11, 2026
56f5e71
fix: warn in flexibilizeEnzConcs when the input model is infeasible
edkerk Nov 11, 2026
99b8b8e
feat: write kcatDecisions.tsv with snake_case column names
edkerk Nov 11, 2026
b2f234c
feat: add relaxEnzConcs, the least total relaxation in one LP
edkerk Nov 11, 2026
e203fd4
feat: add the restrictTo option to constrainEnzConcs
edkerk Nov 11, 2026
643bcca
fix: never lower a bound in flexibilizeEnzConcs and cap its iterations
edkerk Nov 11, 2026
d983044
feat: add the shadow_price method to getConcControlCoeffs
edkerk Nov 11, 2026
f1b3fbe
fix: give a kcat source in several evotune groups the first group
edkerk Nov 11, 2026
b48fe49
fix: raise an error in setProtPoolSize without prot_pool_exchange
edkerk Nov 11, 2026
4fb767d
fix: merge a kcat_sources table with the preset settings of its source
edkerk Nov 11, 2026
6f4ac56
chore: remove the duplicate sucrose column from evotuneMaxGrowth.tsv
edkerk Nov 11, 2026
bd422d2
feat: make KinForm-H the default OpenKineticsPredictor method
edkerk Nov 11, 2026
b20012a
doc: mark the low-level kcat functions in their help
edkerk Nov 11, 2026
87668e2
feat: use KinForm-H as the default OKP method of the presets
edkerk Nov 11, 2026
389bb09
feat: move the OpenKineticsPredictor engine into kcatsFromOKP
edkerk Nov 11, 2026
bcff38e
feat: move the DLKcat Docker route into kcatsFromDLKcat
edkerk Nov 11, 2026
1fec5d6
feat: deprecate applyCustomKcats and refuse customKcats.tsv
edkerk Nov 11, 2026
75956a6
doc: describe flexibilizeEnzConcs:infeasible as a warning
edkerk Nov 11, 2026
978dbc2
test: cover a greedy relaxation that runs out on its last iteration
edkerk Nov 11, 2026
ae9e3c6
doc: state the OKP methods of the preset comparison
edkerk Nov 11, 2026
2e3acec
feat: keep a bayesianSensitivityTuning stub that names cmaesKcatTuning
edkerk Nov 11, 2026
de3b6ae
test: use kcatsFromDLKcat in the manual workflow tests
edkerk Nov 11, 2026
050da38
fix: give the DLKcat stub errors also when an output is taken
edkerk Nov 11, 2026
41bf77b
fix: accept the strict option in the readDLKcatOutput stub
edkerk Nov 11, 2026
fc0729e
fix: name the variable and key file in the missing OKP key error
edkerk Nov 11, 2026
148313a
test: run the DLKcat Docker check of tc0011 in its own test
edkerk Nov 11, 2026
6479f64
test: skip the fake Docker helper on macOS
edkerk Nov 11, 2026
1705b6b
fix: raise ecFSEOF:noRange also for a descending scan, with a tolerance
edkerk Nov 11, 2026
58cf47e
test: cover relaxEnzConcs with perComplex on a two-subunit complex
edkerk Nov 11, 2026
67437b3
feat: leave the UniProt and KEGG identifiers empty by default
edkerk Nov 11, 2026
b36b58f
fix: download unreviewed UniProt entries by default in downloadUniProt
edkerk Nov 11, 2026
fffcbb6
fix: do not name updateKcatSources for a missing custom.tsv in collec…
edkerk Nov 11, 2026
12fd017
fix: do not query PubChem for empty metabolite names
edkerk Nov 11, 2026
be84a21
chore: remove stray files and HumanGEMAdapter from the tutorials
edkerk Nov 11, 2026
4e4fec2
feat: assign tutorial kcats with brenda_ec_tree from shipped files
edkerk Nov 11, 2026
3ec8ea5
fix: keep empty adapter defaults in loadAdapterParams
edkerk Nov 11, 2026
addca52
doc: rewrite the tutorial protocols for GECKO 4
edkerk Nov 11, 2026
f5ec8c8
doc: run the light tutorial without the OpenKineticsPredictor source …
edkerk Nov 12, 2026
841dbc3
chore: regenerate the light tutorial ecModel and its kcat decisions
edkerk Nov 12, 2026
5e032c0
feat: ship the KinForm-H kcat predictions of the full tutorial
edkerk Nov 12, 2026
792efec
chore: regenerate the full tutorial ecModel and outputs
edkerk Nov 12, 2026
c267b9c
Merge branch 'develop' into feat/gecko4-workflow
edkerk Nov 12, 2026
b140ddc
chore: regenerate the full tutorial ecModel with the ec.source tuning…
edkerk Nov 12, 2026
4f6d033
feat: warn that each deprecated function and adapter classes will be …
edkerk Nov 12, 2026
3b21402
feat: add stubs that name the replacement of the removed gecko 3 func…
edkerk Nov 12, 2026
2158fa2
fix: list only gecko 3 names among the functions that upgradeGECKOpro…
edkerk Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ geckopy/geckopy/data_files/*.xml
*.ppt*
# Only allowed .mat file
!phylDist.mat
# OpenKineticsPredictor API key of a project (see resolveOkpApiKey)
okpApiKey.txt
# BRENDA files, downloaded by fetchBrendaAsset
databases/brenda-*/
# Ignore intermediate model files
Expand Down
13 changes: 7 additions & 6 deletions src/change_model/addNewRxnsToEC.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
% newRxns : struct
% structure with the new reaction information (see Notes for fields).
%
Expand Down Expand Up @@ -52,9 +52,10 @@
% defined will be used to expand the model (add _EXP_n).
% 2. When all the genes of the new reactions already have enzymes, no
% newEnzymes are needed.
% 3. After adding the new reactions, setKcatForReactions or
% applyCustomKcats should be run to add the kcat to the reactions, and
% subsequently applyKcatConstraints.
% 3. After adding the new reactions, setKcatForReactions should be run to
% add the kcat to the reactions, and subsequently applyKcatConstraints.
% Alternatively, rows for the new reactions in data/kcats/custom.tsv are
% used by assignKcats.
%
% Examples
% --------
Expand All @@ -64,7 +65,7 @@
%
% See also
% --------
% applyKcatConstraints, applyCustomKcats
% applyKcatConstraints, setKcatForReactions, assignKcats

p = parseGECKOargs(varargin, { ...
'newEnzymes', []; ...
Expand All @@ -87,7 +88,7 @@

% Validate if GECKO version 3
if ~isfield(model, 'ec')
error('Input model is not an ecModel in GECKO 3 format (with ecModel.ec structure)')
error('Input model is not an ecModel (with ecModel.ec structure)')
end

if model.ec.geckoLight
Expand Down
2 changes: 1 addition & 1 deletion src/change_model/applyComplexData.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
%
% Name-Value Arguments
% --------------------
Expand Down
2 changes: 1 addition & 1 deletion src/change_model/applyKcatConstraints.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
%
% Name-Value Arguments
% --------------------
Expand Down
7 changes: 4 additions & 3 deletions src/change_model/findMetSmiles.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function [model,noSMILES] = findMetSmiles(model, varargin)
% findMetSmiles Query PubChem by metabolite names to obtain SMILES.
%
% Matches are cached in tutorials/***/data/smilesDB.tsv, which is checked
% Matches are cached in <params.path>/data/smilesDB.tsv, which is checked
% first on subsequent runs so repeated queries are avoided. If the model
% already has a metSmiles field, non-empty entries are left unchanged. When
% the cache holds a name more than once, the last row is used. A metabolite
Expand Down Expand Up @@ -59,8 +59,9 @@
%The last row of a name that occurs more than once is used
smilesDB.names = flipud(raw{1});
smilesDB.smile = flipud(raw{2});
[metMatch, metIdx] = ismember(uniqueNames,smilesDB.names);
uniqueSmiles(metMatch) = smilesDB.smile(metIdx(metMatch));
[inDB, metIdx] = ismember(uniqueNames,smilesDB.names);
uniqueSmiles(inDB) = smilesDB.smile(metIdx(inDB));
metMatch = metMatch | inDB;
if verbose; fprintf('done.\n'); end
else
if verbose; fprintf('not found.\n'); end
Expand Down
15 changes: 9 additions & 6 deletions src/change_model/getComplexData.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
% taxonomicID : double
% taxonomic identifier for which complex data should be downloaded. Only
% taxonomic identifiers allowed are those included on Complex Portal:
% https://www.ebi.ac.uk/complexportal/complex/organisms. If empty, no
% complex data is downloaded; if 0 (zero), complex data from all
% organisms in Complex Portal is downloaded.
% https://www.ebi.ac.uk/complexportal/complex/organisms. If empty, the
% taxonomicID of the model adapter is used; if that is also empty, no
% complex data is downloaded, the warning getComplexData:noTaxonomicID
% is raised and complexInfo is empty. If 0 (zero), complex data from
% all organisms in Complex Portal is downloaded.
% modelAdapter : ModelAdapter
% a loaded model adapter (default: the current default model adapter).
%
Expand Down Expand Up @@ -62,8 +64,11 @@
end

params = modelAdapter.params;
rowHeadings = {'complexID','name','species','geneName','protID','stochiometry','defined'};
if isempty(taxonomicID) % Can be empty when gathered from model adapter
printOrange('WARNING: No taxonomicID specified.');
warning('getComplexData:noTaxonomicID', ...
'No taxonomicID specified; no complex data is downloaded.')
complexInfo = cell2struct(cell(0, numel(rowHeadings)), rowHeadings, 2);
return
elseif taxonomicID == 0
taxonomicID = [];
Expand Down Expand Up @@ -169,8 +174,6 @@
end
end

rowHeadings = {'complexID','name','species','geneName','protID','stochiometry','defined'};

complexInfo = cell2struct(complexData, rowHeadings, 2);

% Convert to a JSON file
Expand Down
5 changes: 4 additions & 1 deletion src/change_model/getKcatAcrossIsozymes.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
function model = getKcatAcrossIsozymes(model)
% getKcatAcrossIsozymes Fill missing kcats from isozymes of the same reaction.
%
% Low-level: collectKcats and assignKcats run this function; call it
% directly only to change kcats by hand.
%
% For reactions without kcat value (0 in model.ec.kcat), isozymes are found
% (being based on the same reaction in the conventional GEM), that do have a
% kcat value assigned. The mean kcat value of these isozymes is then used to
Expand All @@ -11,7 +14,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in full GECKO 3 format (with ecModel.ec structure), not
% a full ecModel (with ecModel.ec structure), not
% GECKO light.
%
% Returns
Expand Down
2 changes: 1 addition & 1 deletion src/change_model/getReactionsFromEnzyme.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Parameters
% ----------
% ecModel : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
% proteinId : char
% protein identifier, matching ecModel.ec.enzymes case-insensitively.
%
Expand Down
8 changes: 4 additions & 4 deletions src/change_model/makeEcModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
% Returns
% -------
% model : struct
% an ecModel in GECKO 3 format, with a model.ec structure where enzyme
% an ecModel, with a model.ec structure where enzyme
% and kcat information are stored. Protein pseudometabolites and their
% draw reactions are added to the model, but their usage is not yet
% implemented (due to absent kcat values at this stage).
Expand Down Expand Up @@ -88,9 +88,9 @@
% genes, mapping which genes are connected to which reaction (where isozymes
% have different reactions).
%
% The light model works a bit differently. The model has the same number of
% rxns as the original model, but expanded since it is reversible + one the
% extra prot maintenance rxn and one extra prot_pool rxn. However, the ec
% The light model works a bit differently. The model keeps the rxns of the
% original model, with reversible reactions split in two directions, and
% gets one extra reaction: prot_pool_exchange. The ec
% fields rxns, eccodes, kcat, source and notes are duplicated for each
% isozyme, sorted the same way as model.rxns. So, in model.ec.rxns, the same
% reaction will appear several times after one another, one entry per
Expand Down
2 changes: 1 addition & 1 deletion src/change_model/mapRxnsToConv.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
% Parameters
% ----------
% ecModel : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure), that was
% an ecModel (with ecModel.ec structure), that was
% used to obtain fluxVect.
% model : struct
% the starting model for ecModel, to which the reactions should be
Expand Down
2 changes: 1 addition & 1 deletion src/change_model/setKcatForReactions.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% Parameters
% ----------
% ecModel : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
% rxnIds : char or cell
% reaction identifier matching ecModel.ec.rxns. If the _EXP_ suffix is
% not included, and there are multiple expanded (isozymic) reactions,
Expand Down
14 changes: 12 additions & 2 deletions src/change_model/setProtPoolSize.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
%
% Name-Value Arguments
% --------------------
Expand All @@ -28,6 +28,11 @@
% model : struct
% ecModel with protein pool constraint set.
%
% Notes
% -----
% A model without a prot_pool_exchange reaction raises the error
% setProtPoolSize:noPoolExchange.
%
% Examples
% --------
% % optional arguments may be given positionally or as name-value pairs:
Expand Down Expand Up @@ -65,6 +70,11 @@
Ptot = modelAdapter.getParameters().Ptot;
end

model.ub(strcmp(model.rxns, 'prot_pool_exchange')) = Ptot*f*sigma*1000;
poolIdx = strcmp(model.rxns, 'prot_pool_exchange');
if ~any(poolIdx)
error('setProtPoolSize:noPoolExchange', ...
'The model has no prot_pool_exchange reaction; makeEcModel adds it.')
end
model.ub(poolIdx) = Ptot*f*sigma*1000;
end

13 changes: 13 additions & 0 deletions src/deprecated/abc_max.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function varargout = abc_max(varargin) %#ok<STOUT>
% abc_max Removed: helper of the Bayesian (ABC-SMC) kcat tuning of GECKO 3.
%
% This function raises an error that names its GECKO 4 replacement.
%
% See also
% --------
% cmaesKcatTuning, sensitivityTuning

error('GECKO:removedFunction', ['abc_max was removed in GECKO 4 with bayesianSensitivityTuning. Use ' ...
'cmaesKcatTuning (advanced kcat tuning) or sensitivityTuning ' ...
'(standard kcat tuning).']);
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
% KEY_CLASSNAME Template ModelAdapter to copy and adapt per organism.
%
% Deprecated: a project is configured by model_adapter.toml (see
% adapterTemplate.toml and TomlAdapter), and createGECKOproject writes it.
% convertAdapterToToml converts an adapter class.
%
% Starting point for a species-specific adapter. Copy this file, rename
% the class, and edit the parameter values set in the constructor and the
% getSpontaneousReactions method to match the target organism and model.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function [model, rxnUpdated, notMatch] = applyCustomKcats(model, varargin)
% applyCustomKcats Apply user-defined kcats to an ecModel.
% applyCustomKcats Deprecated: use convertCustomKcats and data/kcats/custom.tsv.
%
% Deprecated. convertCustomKcats writes data/customKcats.tsv as
% data/kcats/custom.tsv, which collectKcats and assignKcats read. Will be
% removed in a future release.
%
% Reads data/customKcats.tsv in the obj.params.path specified in the model
% adapter. Alternatively, a customKcats structure can be provided, as
Expand All @@ -8,7 +12,7 @@
% Parameters
% ----------
% model : struct
% an ecModel in GECKO 3 format (with ecModel.ec structure).
% an ecModel (with ecModel.ec structure).
%
% Name-Value Arguments
% --------------------
Expand Down Expand Up @@ -81,6 +85,9 @@
% --------
% applyKcatConstraints, makeEcModel

warning('GECKO:deprecatedFunction', ['applyCustomKcats is deprecated; use convertCustomKcats, ' ...
'which writes data/kcats/custom.tsv for collectKcats and assignKcats. applyCustomKcats ' ...
'will be removed in a future release.'])
p = parseGECKOargs(varargin, { ...
'customKcats', []; ...
'modelAdapter', []});
Expand Down
17 changes: 17 additions & 0 deletions src/deprecated/bayesianSensitivityTuning.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function varargout = bayesianSensitivityTuning(varargin) %#ok<STOUT>
% bayesianSensitivityTuning Removed: Bayesian (ABC-SMC) kcat tuning of GECKO 3.
%
% GECKO 4 tunes kcats against experimental data with cmaesKcatTuning (the
% advanced kcat tuning), which reads the same kinds of data from
% data/evotuneMaxGrowth.tsv, data/evotuneFluxData.tsv and
% data/evotuneZeroExch.tsv (see loadEvotuneData). sensitivityTuning is the
% standard kcat tuning. This function raises an error that names them.
%
% See also
% --------
% cmaesKcatTuning, screenKcatLeverage, sensitivityTuning

error('GECKO:removedFunction', ['bayesianSensitivityTuning was removed in GECKO 4. ' ...
'Use cmaesKcatTuning (advanced kcat tuning, data in data/evotune*.tsv) or ' ...
'sensitivityTuning (standard kcat tuning).']);
end
12 changes: 12 additions & 0 deletions src/deprecated/findMaxValue.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function varargout = findMaxValue(varargin) %#ok<STOUT>
% findMaxValue Removed: largest BRENDA kcat or specific activity for a set of EC numbers.
%
% This function raises an error that names its GECKO 4 replacement.
%
% See also
% --------
% kcatsFromBrenda, kcatsFromECTree

error('GECKO:removedFunction', ['findMaxValue was removed in GECKO 4. Use kcatsFromBrenda, or ' ...
'kcatsFromECTree, which collect BRENDA kcats per reaction.']);
end
12 changes: 12 additions & 0 deletions src/deprecated/getcarbonnum.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function varargout = getcarbonnum(varargin) %#ok<STOUT>
% getcarbonnum Removed: carbon numbers of exchange reactions, a helper of the Bayesian kcat tuning of GECKO 3.
%
% This function raises an error that names its GECKO 4 replacement.
%
% See also
% --------
% fillCarbonNum

error('GECKO:removedFunction', ['getcarbonnum was removed in GECKO 4. Use fillCarbonNum, which writes' ...
' the carbon number of each exchange reaction to model.excarbon.']);
end
13 changes: 13 additions & 0 deletions src/deprecated/getrSample.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function varargout = getrSample(varargin) %#ok<STOUT>
% getrSample Removed: helper of the Bayesian (ABC-SMC) kcat tuning of GECKO 3.
%
% This function raises an error that names its GECKO 4 replacement.
%
% See also
% --------
% cmaesKcatTuning, sensitivityTuning

error('GECKO:removedFunction', ['getrSample was removed in GECKO 4 with bayesianSensitivityTuning. ' ...
'Use cmaesKcatTuning (advanced kcat tuning) or sensitivityTuning ' ...
'(standard kcat tuning).']);
end
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
bottomOriginLimit = p.bottomOriginLimit;
wildcardLimit = p.wildcardLimit;

warning(['mergeDLKcatAndFuzzyKcats is deprecated; use mergeKcats instead. ' ...
'The old name will be removed in a future release.']);
warning('GECKO:deprecatedName', ['mergeDLKcatAndFuzzyKcats is deprecated; use mergeKcats ' ...
'instead. The old name will be removed in a future release.']);

% Fuzzy list first, then DLKcat, so surviving rows keep the legacy order
% (fuzzy block followed by DLKcat block).
Expand Down
44 changes: 44 additions & 0 deletions src/deprecated/readDLKcatOutput.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
function kcatList = readDLKcatOutput(model, varargin)
% readDLKcatOutput Deprecated: use kcatsFromDLKcat(model, 'via', 'file').
%
% Reads a DLKcat output file into a kcatList through kcatsFromDLKcat, which
% reads data/DLKcat.tsv of the project. A file elsewhere (outFile) is read
% from a temporary copy. Will be removed in a future release.
%
% Name-Value Arguments
% --------------------
% outFile : char
% the DLKcat output file (default: data/DLKcat.tsv of the project).
% modelAdapter : ModelAdapter
% a loaded model adapter (default: the current default model adapter).
% strict : logical
% ignored, with a warning: rows with a substrate that is not in
% model.metNames are always left out with a warning.
%
% See also
% --------
% kcatsFromDLKcat

warning('GECKO:deprecatedFunction', ['readDLKcatOutput is deprecated; use ' ...
'kcatsFromDLKcat(model, ''via'', ''file''). It will be removed in a future release.'])
p = parseGECKOargs(varargin, {'outFile', []; 'modelAdapter', []; 'strict', []});
if ~isempty(p.strict)
warning('GECKO:deprecatedOption', ['The strict option of readDLKcatOutput is ignored: rows ' ...
'with a substrate that is not in model.metNames are left out with a warning.'])
end
modelAdapter = p.modelAdapter;
if isempty(modelAdapter)
modelAdapter = ModelAdapterManager.getDefault();
if isempty(modelAdapter)
error('Either send in a modelAdapter or set the default model adapter in the ModelAdapterManager.')
end
end
if ~isempty(p.outFile)
project = tempname;
mkdir(fullfile(project, 'data'));
cleanup = onCleanup(@() rmdir(project, 's'));
copyfile(p.outFile, fullfile(project, 'data', 'DLKcat.tsv'));
modelAdapter.params.path = project;
end
kcatList = kcatsFromDLKcat(model, 'via', 'file', 'save', false, 'modelAdapter', modelAdapter);
end
Loading
Loading