Skip to content

Commit

Permalink
fix: rxnConfidenceScores
Browse files Browse the repository at this point in the history
All added rxns should have score = 1 (needed for modeling)
  • Loading branch information
BenjaSanchez committed May 20, 2018
1 parent 9368d42 commit c84a015
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions models/addSLIMErxn.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

try
printRxnFormula(model,rxnID,true,true,true);
model.rxnConfidenceScores(strcmp(model.rxns,rxnID)) = 1;
catch
disp(['Repeated: ' rxnName])
end
Expand Down
3 changes: 2 additions & 1 deletion models/changeChainComp.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% model = changeChainComp(model,chainData)
%
% Benjamín J. Sánchez. Last update: 2018-03-24
% Benjamín J. Sánchez. Last update: 2018-05-20
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function model = changeChainComp(model,chainData)
Expand Down Expand Up @@ -31,6 +31,7 @@
'upperBound', 1000);

printRxnFormula(model,rxnID,true,true,true);
model.rxnConfidenceScores(strcmp(model.rxns,rxnID)) = 1;

end

Expand Down
3 changes: 2 additions & 1 deletion models/changeLipidComp.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% model = changeLipidComp(model,lipidData)
%
% Benjamín J. Sánchez. Last update: 2018-03-24
% Benjamín J. Sánchez. Last update: 2018-05-20
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function model = changeLipidComp(model,lipidData)
Expand Down Expand Up @@ -29,6 +29,7 @@
'lowerBound', 0, ...
'upperBound', 1000);
printRxnFormula(model,rxnID,true,true,true);
model.rxnConfidenceScores(strcmp(model.rxns,rxnID)) = 1;

end

Expand Down

0 comments on commit c84a015

Please sign in to comment.