Skip to content

Commit f531c48

Browse files
committed
rename atlas entity to seg
1 parent fdb5a0c commit f531c48

18 files changed

+34
-31
lines changed
File renamed without changes.

src/atlas/copyAtlasToSpmDir.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,22 @@ function copyAtlasToSpmDir(varargin)
9494
sourceAtlasXml = fullfile(returnAtlasDir(), 'HCPex.xml');
9595

9696
case 'visfatlas'
97-
sourceAtlasImage = fullfile(returnAtlasDir(atlas), 'space-MNI_atlas-visfAtlas_dseg.nii');
98-
sourceAtlasXml = fullfile(returnAtlasDir(atlas), 'space-MNI_atlas-visfAtlas_dseg.xml');
97+
sourceAtlasImage = fullfile(returnAtlasDir(atlas), 'space-MNI_seg-visfAtlas_dseg.nii');
98+
sourceAtlasXml = fullfile(returnAtlasDir(atlas), 'space-MNI_seg-visfAtlas_dseg.xml');
9999

100100
case 'glasser'
101101

102102
sourceAtlasImage = fullfile(returnAtlasDir(atlas), ...
103-
'space-MNI152ICBM2009anlin_atlas-glasser_dseg.nii');
103+
'space-MNI152ICBM2009anlin_seg-glasser_dseg.nii');
104104
sourceAtlasXml = fullfile(returnAtlasDir(atlas), ...
105-
'space-MNI152ICBM2009anlin_atlas-glasser_dseg.xml');
105+
'space-MNI152ICBM2009anlin_seg-glasser_dseg.xml');
106106

107107
case 'wang'
108108
sourceAtlasImage = fullfile(returnAtlasDir(atlas), ...
109109
'subj_vol_all', ...
110-
'space-MNI_atlas-wang_dseg.nii');
110+
'space-MNI_seg-wang_dseg.nii');
111111
sourceAtlasXml = fullfile(returnAtlasDir(), ...
112-
'space-MNI_atlas-wang_dseg.xml');
112+
'space-MNI_seg-wang_dseg.xml');
113113

114114
otherwise
115115
error(['Only the following atlases can be copied to SPM atlas folder:\n', ...

src/atlas/extractRoiFromAtlas.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
% rename file
123123
entities = struct('hemi', hemisphere, ...
124124
'space', 'MNI', ...
125-
'atlas', lower(atlasName), ...
125+
'seg', lower(atlasName), ...
126126
'label', roiName);
127127
nameStructure = struct('entities', entities, ...
128128
'suffix', 'mask', ...

src/atlas/getAtlasFilename.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
case 'glasser'
4949

50-
atlasFilename = fullfile(atlasDir, 'space-MNI152ICBM2009anlin_atlas-glasser_dseg.nii');
50+
atlasFilename = fullfile(atlasDir, 'space-MNI152ICBM2009anlin_seg-glasser_dseg.nii');
5151

5252
end
5353

src/atlas/getLookUpTable.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
roiLabelLUT = fullfile(atlasDir, 'Anatomy_v22c_MPM.txt');
4242

4343
if ~exist(roiLabelLUT, 'file')
44-
error('Did you install the spm Anatomy toolbox?\n\nDownload it from: %s', ...
44+
error(['Could not find look up table: %s.\n'...
45+
'Did you install the spm Anatomy toolbox?\n\n', ...
46+
'Download it from: %s'], ...
47+
roiLabelLUT, ...
4548
anat_tb_URL);
4649
end
4750

src/atlas/unzipAtlas.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ function unzipAtlas(atlas)
3030
end
3131

3232
case 'glasser'
33-
file = fullfile(atlasDir, 'Glasser', 'space-MNI152ICBM2009anlin_atlas-glasser_dseg.nii');
33+
file = fullfile(atlasDir, 'Glasser', 'space-MNI152ICBM2009anlin_seg-glasser_dseg.nii');
3434
gunzipAtlasIfNecessary(file);
3535

3636
case 'visfatlas'
37-
file = fullfile(atlasDir, 'visfAtlas', 'space-MNI_atlas-visfAtlas_dseg.nii');
37+
file = fullfile(atlasDir, 'visfAtlas', 'space-MNI_seg-visfAtlas_dseg.nii');
3838
gunzipAtlasIfNecessary(file);
3939

4040
case 'hcpex'

0 commit comments

Comments
 (0)