Skip to content

Commit

Permalink
fix: getStandardKcat for light ecModels
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Jun 6, 2024
1 parent f5ea969 commit ce31bf7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/geckomat/gather_kcats/getStandardKcat.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
% Find reactions with GPR but without model.ec entry (for instance due to
% no protein matching)
rxnsMissingEnzyme = find(~cellfun(@isempty, model.grRules));
rxnsMissingEnzyme = find(and(~ismember(model.rxns(rxnsMissingEnzyme),model.ec.rxns), ~contains(model.rxns(rxnsMissingEnzyme),'usage_prot_')));
if model.ec.geckoLight
ecRxnsList = unique(extractAfter(model.ec.rxns,4));
else
ecRxnsList = model.ec.rxns;
end
rxnsMissingEnzyme = find(and(~ismember(model.rxns(rxnsMissingEnzyme),ecRxnsList), ~contains(model.rxns(rxnsMissingEnzyme),'usage_prot_')));
rxnsMissingGPR = [rxnsMissingGPR;rxnsMissingEnzyme];

% Get custom list of reaction IDs to ignore, if existing. First column
Expand Down

0 comments on commit ce31bf7

Please sign in to comment.