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

Added option to export water mix in ExportLCMRaw

parent 287705d4
No related branches found
No related tags found
No related merge requests found
function ExportLcmRaw(this, path, name, addSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak)
function ExportLcmRaw(this, path, name, addSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak, MC_mix)
% Define the fileptath where the .RAW files will be saved
if exist('path','var')
......@@ -26,6 +26,10 @@ if ~exist('scalingFactorRefPeak','var')
scalingFactorRefPeak = 0.05;
end
if ~exist('MC_mix','var')
MC_mix = 1; %1 = normal case, export spectra. 2 = export MC water
end
if exist('addSinglet','var')
choice = addSinglet;
if choice == true
......@@ -51,7 +55,7 @@ data = this.Data{1};
NMeas = size( data, this.meas_dim); % # Averages
%NCha = size( data, this.coil_dim); % # Channels
%NRep = size( data, this.dyn_dim); % # Repetitions
%NMix = size( data, this.mix_dim); % # Mixes
NMix = size( data, this.mix_dim); % # Mixes
isAveraged = this.Parameter.ReconFlags.isAveraged;
isMovingAveraged = this.Parameter.ReconFlags.isfMRSMovingAveraged;
isISISAveraged = this.Parameter.ReconFlags.isISISAveraged;
......@@ -104,7 +108,7 @@ switch makeBasis
metaboliteName = 'Leu';
end
dataExport = data(:,1,1,1,1,1,1,1,1,1,1,1);
dataExport = data(:,1,1,1,1,1,1,1,MC_mix,1,1,1);
brukerFormat = true;
ExportLCModelBasis(dataExport, dwellTime, scanFrequency, filepath, filename, metaboliteName, choice, ...
brukerFormat, referencePeakPpm, scalingFactorRefPeak, makeBasis, TE, sequenceName)
......
......@@ -80,7 +80,7 @@ classdef MR_spectroS
this = Filtering( this );
this = Truncate( this, truncPoint)
this = RemoveFiltering( this );
this = ExportLcmRaw( this, path, name, advoigdSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak);
this = ExportLcmRaw( this, path, name, advoigdSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak, MC_mix);
this = ExportMruiText(this, path, name, nucleus);
this = AverageData( this );
this = DeleteCoilChannels( this, coilChannels2Delete );
......
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