forked from nputs/Gannet2.0_nicksversion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGannetPreInitialise.m
34 lines (29 loc) · 1.69 KB
/
GannetPreInitialise.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function MRS_struct=GannetPreInitialise(MRS_struct)
% Some of these parameters will be overwritten by correct values are stored
% in the data headers.
%Acquisition Parameters
MRS_struct.p.sw=2000; % sw taken from header for all formats except Philips .data
% MRS_struct.p.sw=5000; %This should be parsed from headers where possible
MRS_struct.p.npoints=1024; %This is twice the acquired points for TWIX data;
%This should be parsed from headers where possible
MRS_struct.p.TR=2000;%This should be parsed from headers where possible
MRS_struct.p.TE=68; %This should be parsed from headers where possible
MRS_struct.p.LarmorFreq=127; %This should be parsed from headers where possible
%In general, LarmorFreq is 127.8 on Philips,
MRS_struct.p.Nwateravg = 8; %Needed for GE
MRS_struct.p.target='GABA'; %Other options are 'GSH' and 'Glx' (now also implemented) 'GABAGlx' in dev
MRS_struct.p.ONOFForder='offfirst';
%Options are MRS_struct.ONOFForder='onfirst' or 'offfirst';
MRS_struct.p.Water_Positive=1; %For Philips MOIST ws, set to 0.
%Siemens header information differs between versions
%switch for different versions
MRS_struct.p.Siemens_type = 1; %1 = TIM TRIO WIP 2 = Near seq 3 =Skyra WIP; 4=Prisma (VD13C); 5=Prisma(Minnesota); 6 = Jamie's VE11B (Jena)
%Analysis Parameters
MRS_struct.p.LB = 3;
MRS_struct.p.ZeroFillTo = 32768;
%AlignTo planned options: Cr; Cho; NAA; H20; CrOFF
MRS_struct.p.AlignTo = 'SpecReg'; %SpecReg default and recommended
%Output Parameters
MRS_struct.p.mat = 0; %1 = YES, save MRS_struct as .mat file.
MRS_struct.p.sdat = 0; %1 = YES, save MRS_struct as .sdat file.
end