-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdbs_prefs.m
More file actions
138 lines (107 loc) · 5.6 KB
/
Copy pathdbs_prefs.m
File metadata and controls
138 lines (107 loc) · 5.6 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
function prefs=dbs_prefs(patientname)
% determine preferences here. For filenames, the variable 'patientname' can
% be used in string-handling. This variable will be a string with the same name as the patient
% folder.
% load loaded prefs (-> prefs.lp)
try
load([dbs_getroot,'dbs_prefs']);
prefs.lp=lp;
end
%% general settings:
prefs.pp.do=1; % use parallel processing if available.
prefs.pp.csize=4; % specify how many clusters to recruit.
prefs.pp.profile='local'; % specify parallel processing profile.
% Directory settings
prefs.patdir.showpath = 'on'; % show path in command window
prefs.patdir.cd = 'on'; % Change directory to patient dir
prefs.fsdir.showpath = 'on'; % show freesurfer directory path in window
prefs.fsdir.cd = 'on'; % Change directory on button click
%% general file handling:
prefs.postopmri='postopmri.nii'; % not needed if schoenecker normalization is used.
% prefs.prenii_unnormalized_t1='anat_t1.nii'; % (preoperative) anatomical MR image
% prefs.prenii_unnormalized_pd='anat_pd.nii'; % (preoperative) anatomical MR image
% prefs.rawpreniis={prefs.prenii_unnormalized,prefs.prenii_unnormalized_t1,prefs.prenii_unnormalized_pd};
% prefs.tranii_unnormalized='postop_tra.nii';
% prefs.sagnii_unnormalized='postop_sag.nii';
% prefs.cornii_unnormalized='postop_cor.nii';
prefs.ctnii='preopct.nii';
prefs.ctnii_coreg='rpreopct.nii';
prefs.patientdir=patientname;
prefs.skull2obj='rpreopct.nii'; % Default image to create skull wave obj
% prefs.prenii='lanat.nii';
% prefs.prenii_t1='lanat_t1.nii';
% prefs.prenii_pd='lanat_pd.nii';
% prefs.tranii='lpostop_tra.nii';
% prefs.cornii='lpostop_cor.nii';
% prefs.sagnii='lpostop_sag.nii';
% prefs.ctnii='lpostop_ct.nii';
% prefs.gprenii='glanat.nii';
% prefs.gprenii_t1='glanat_t1.nii';
% prefs.gprenii_pd='glanat_pd.nii';
% prefs.gtranii='glpostop_tra.nii';
% prefs.gcornii='glpostop_cor.nii';
% prefs.gsagnii='glpostop_sag.nii';
% prefs.gctnii='glpostop_ct.nii';
%% Fid Localizer Preferences
prefs.fidlocalizer.firstimage = 'postopmri.nii'; % First image shown, look in patientdir
%% connectome files:
prefs.rest_prefix='res*.nii'; % raw resting state fMRI data search string
prefs.rest_default='rest.nii'; % default for dcm2nii export.
%% connectome settings:
prefs.lc.struc.maxdist=2; % maximal distance to form a connection (between fiber terminals and voxel centers, in mm).
prefs.lc.struc.minlen=3; % minimum fiber length to consider to form connections (in segments).
prefs.lc.graphsurfc=[0.2081 0.1663 0.5292]; % default color for graph metric 3D-visualizations.
prefs.lc.matsurfc=[0.8 0.7 0.4]; % default color for matrix-level correlations 3D-visualizations.
prefs.lc.seedsurfc=[0.8 0.1 0.1]; % default color for seed of matrix-level correlations 3D-visualizations.
prefs.lc.func.regress_global=1;
prefs.lc.func.regress_wmcsf=1;
prefs.lc.func.bphighcutoff=0.08;
prefs.lc.func.bplowcutoff=0.009;
%% DTI-files:
prefs.b0='b0.nii';
prefs.fa='fa.nii';
prefs.fa2anat='fa2anat.nii';
prefs.FTR_unnormalized='FTR.mat';
prefs.FTR_normalized='wFTR.mat';
prefs.DTD='DTD.mat';
prefs.HARDI='HARDI.mat';
prefs.dti='dti.nii';
prefs.bval='dti.bval';
prefs.bvec='dti.bvec';
prefs.sampledtidicom='sample_dti_dicom.dcm'; % sample DICOM file of DTI image (used for trackvis export).
prefs.normmatrix='lmat.txt';
%% Normalization:
prefs.normalize.coreg='manual'; % set to 'manual' to include manual coregistration check steps.
prefs.normalize.default='ea_normalize_ants';
prefs.normalize.inverse.customtpm=1; % set to 1 if custom TPM shall be built for inverse warpings.
%% Coregistration (CT/MR):
prefs.ctcoreg.default='ea_coregctmri_ants';
%% Coregistration (MR/MR):
prefs.mrcoreg.default='spm'; % set to 'spm' or 'ants'
%% volumes:
prefs.hullmethod=2; % set 2 to use isosurface, 1 for concavehull, 0 for convexhull.
prefs.hullsmooth=5; % set to smooth hulldata. Only applies if isosurface is used. Only odd numbers allowed. Set to 0 if you don't want to smooth.
prefs.hullsimplify='auto'; % 0.1 would reduce hulldata to 10%. set to simplify hulldata. Set to 1 to not simplify. Only applies if isosurface is used.
%% labels:
prefs.lhullmethod=2; % set 2 to use isosurface, 1 for concavehull, 0 for convexhull.
prefs.lhullsmooth=3; % set to smooth hulldata. Only applies if isosurface is used. Only odd numbers allowed. Set to 0 if you don't want to smooth.
prefs.lhullsimplify='auto'; % 0.1 would reduce hulldata to 10% ? set to simplify hulldata. Set to 1 to not simplify. Only applies if isosurface is used.
%% 2D-Export
prefs.d2.useprepost='pre'; % can be 'post' or 'pre' to set the backdrop.
prefs.d2.groupcolors='lead'; % can be 'maxdist' to use ea_distinguishable_colors by Timothy E. Holy, 'lead' to use a handpicked color set inspired by colorblender.com or 'lines' to use the matlab lines colormap (supports only seven colors).
prefs.d2.isovolsmoothed='s'; % set to '' if you want to display the raw, unsmoothed version of the isovolume.
prefs.d2.isovolcolormap='jet'; % color map to use for plotting of isovolume heatmap.
prefs.d2.isovolsepcomb='combined'; % set to 'combined' to use the lr-combined isovolume and 'lr' to use the separate isovolumes.
%% 3D-Visualization:
prefs.d3.fiberstyle='tube'; % set to 'line' to show thin fibers
prefs.d3.fiberdiameter=0.1; % diameter of fibers ? only works in all ML versions with style==tube
prefs.d3.maxfibers=200; % set to inf to show all fibers (but this could lead to crashes).
%% DICOM files:
prefs.dicom.dicomfiles=0; % 1: delete DICOMs after conversion, 0: Leave DICOMs at pt/DICOM folder after conversion.
%% fibers:
prefs.addfibers={}; % additional fibers to show.
%% lead server:
prefs.ls.autosave=0;
%% environment
prefs.env.dev=0;
prefs.firstrun='off';