Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MR_spectroS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AG_Henning
MR_spectroS
Commits
aad3d1bb
Commit
aad3d1bb
authored
4 years ago
by
Tamas Borbath
Browse files
Options
Downloads
Patches
Plain Diff
Added option to export water mix in ExportLCMRaw
parent
287705d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
algorithms/@MR_spectroS/ExportLcmRaw.m
+7
-3
7 additions, 3 deletions
algorithms/@MR_spectroS/ExportLcmRaw.m
algorithms/@MR_spectroS/MR_spectroS.m
+1
-1
1 addition, 1 deletion
algorithms/@MR_spectroS/MR_spectroS.m
with
8 additions
and
4 deletions
algorithms/@MR_spectroS/ExportLcmRaw.m
+
7
−
3
View file @
aad3d1bb
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
)
...
...
This diff is collapsed.
Click to expand it.
algorithms/@MR_spectroS/MR_spectroS.m
+
1
−
1
View file @
aad3d1bb
...
...
@@ -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 );
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment