You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CanlabCore/@atlas/atlas.m
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -150,13 +150,13 @@
150
150
atlas_name% a short description or name of the atlas
151
151
probability_maps% voxels x regions matrix with probability values for each region
152
152
labels
153
-
label_descriptions% a regions x 1 cell array of long-form descriptions for labels
153
+
label_descriptions= {} % a regions x 1 cell array of long-form descriptions for labels
154
154
labels_2
155
155
labels_3
156
156
labels_4
157
157
labels_5
158
158
references
159
-
space_description='';
159
+
space_description='';% set this to something compatable with the allowed_sourcespace from render_on_surface for automatic projections to supported surfaces when plotting.
160
160
property_descriptions= { ...
161
161
'atlas_name: a short description or name of the atlas' ...
162
162
'probability_maps: voxels x regions matrix with probability values for each region' ...
Copy file name to clipboardExpand all lines: CanlabCore/@atlas/atlas_similarity.m
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -229,10 +229,11 @@
229
229
region_table.Properties.VariableDescriptions{3} ='Region_Vol_mm: Volume of contiguous region in cubic mm.';
230
230
region_table.Properties.VariableDescriptions{4} ='Atlas_regions_covered: Number of reference atlas regions covered at least 25%% by the region. This relates to whether the region covers multiple reference atlas regions';
231
231
region_table.Properties.VariableDescriptions{5} ='Modal_label: Best reference atlas label, defined as reference region with highest number of in-region voxels. Regions covering >25%% of >5 regions labeled as "Multiple regions"';
232
-
region_table.Properties.VariableDescriptions{6} ='Perc_covered_by_label: Percentage of the region covered by the label.';
233
-
region_table.Properties.VariableDescriptions{7} ='Ref_region_perc: Percentage of the label region within the target region.';
234
-
region_table.Properties.VariableDescriptions{8} ='modal_atlas_index: Index number of label region in reference atlas';
235
-
region_table.Properties.VariableDescriptions{9} ='all_regions_covered: All regions covered >5%% in descending order of importance';
232
+
region_table.Properties.VariableDescriptions{6} ='Modal_label_Description: Description of Labels.';
233
+
region_table.Properties.VariableDescriptions{7} ='Perc_covered_by_label: Percentage of the region covered by the label.';
234
+
region_table.Properties.VariableDescriptions{8} ='Ref_region_perc: Percentage of the label region within the target region.';
235
+
region_table.Properties.VariableDescriptions{9} ='modal_atlas_index: Index number of label region in reference atlas';
236
+
region_table.Properties.VariableDescriptions{10} ='all_regions_covered: All regions covered >5%% in descending order of importance';
236
237
237
238
% %%%% for compatibility with canlab_print_legend_text
238
239
coverage_descrip = {sprintf('For example, if a region is labeled ''TE1a'' and Perc_covered_by_label = 8, Ref_region_perc = 38, and Atlas_regions_covered = 17, this means that 8%%%% of the region''s voxels are labeled TE1a, which is the highest percentage among reference label regions. 38%%%% of the region TE1a is covered by the region. However, the region covers at least 25%%%% of 17 distinct labeled reference regions.\n')};
error('labelfield must be one of {''labels_2'', ''labels_3'', ''labels_4'', ''labels_5''})');
55
+
end
56
+
57
+
% check that labels are ordered with finer labels first
58
+
n_unique_lbls = zeros(1,length(valid_lbls));
59
+
n_lbls = zeros(1,length(valid_lbls));
60
+
for i =1:length(valid_lbls)
61
+
lbl = valid_lbls{i};
62
+
n_unique_lbls(i) = length(unique(obj.(lbl)));
63
+
n_lbls(i) = length(obj.(lbl));
64
+
end
65
+
66
+
new_ind = find(strcmp(valid_lbls,labelfield));
67
+
if n_unique_lbls(new_ind) > n_unique_lbls(1)
68
+
error('labelfield %s has %d labels, which is finer grained than labels which has %d unique labels',labelfield, n_unique_lbls(new_ind), n_unique_lbls(1));
69
+
end
70
+
71
+
new_lbl = valid_lbls{new_ind};
72
+
% note: we remove any label fields below if they're not of the appropriate
73
+
% length to correspond to the original parcellation
0 commit comments