Skip to content
Snippets Groups Projects
Commit e401d52a authored by Tamas Borbath's avatar Tamas Borbath
Browse files

Added water concentration calculations for ProFit

parent 2c537558
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ for indexSubj = 1:numberOfSubjects
% load([filenameWater '.mat'], 'aWater', 'maxWaterPeak');
concentrations = cell(numberOfTEs,length(namingSuffixesAve));
concentrations_H2O = cell(numberOfTEs,length(namingSuffixesAve));
if ~fitLCModel
FQNs = cell(numberOfTEs,length(namingSuffixesAve));
FQNs2 = cell(numberOfTEs,length(namingSuffixesAve));
......@@ -136,6 +137,8 @@ for indexSubj = 1:numberOfSubjects
end
[concentrations{indexTE,indexAverageDelete, indexCoilDelete}, activeMetabolites, FQNs{indexTE,indexAverageDelete, indexCoilDelete}, FQNs2{indexTE,indexAverageDelete, indexCoilDelete}] = ...
plot_ProFit_Metabolites_Fit([filenameData, '_profit.mat'],dataExportPathTE, 'Met', true);
load([dataExportPathTE, filenameData, '_profit_H2O.mat'],'concH2O');
concentrations_H2O{indexTE,indexAverageDelete, indexCoilDelete}=concH2O;
end
close all
end
......@@ -145,6 +148,7 @@ for indexSubj = 1:numberOfSubjects
save([dataExportPath{indexSubj}, 'concentrations' truncSuffix '.mat'], 'concentrations');
else
save([dataExportPath{indexSubj}, 'concentrations', truncSuffix '_profit.mat'], 'concentrations', 'activeMetabolites', 'FQNs', 'FQNs2');
save([dataExportPath{indexSubj}, 'concentrations', truncSuffix '_H2O_profit.mat'], 'concentrations_H2O');
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment