Skip to content

Commit

Permalink
Merge pull request #2181 from rxpavan/master
Browse files Browse the repository at this point in the history
Created a new variable 'tempModel'
  • Loading branch information
rmtfleming authored Nov 7, 2023
2 parents 79084d3 + 9613015 commit ff5b1e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dataIntegration/transcriptomics/SWIFTCORE/swiftcore.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%
% .. Authors:
% - Mojtaba Tefagh, Stephen P. Boyd, 2019, Stanford University

tempModel = model;
S = model.S;
[m, n] = size(S);
rev = ones(n, 1);
Expand Down Expand Up @@ -135,6 +135,6 @@
end
end
reconInd = ismember(fullCouplings, reacNum(weights == 0));
reconstruction = removeRxns(model, model.rxns(~reconInd));
reconstruction = removeRxns(tempModel, tempModel.rxns(~reconInd));
reconstruction = removeUnusedGenes(reconstruction);
end
end

0 comments on commit ff5b1e3

Please sign in to comment.