Skip to content

Commit 2117cd3

Browse files
committed
fix hemi entity order when extracting ROI from atlas
1 parent 0b74c0e commit 2117cd3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/atlas/extractRoiFromAtlas.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
roiImage = extractRoiByLabel(atlasFile, labelStruct);
6060

6161
% rename file
62-
entities = struct('space', 'MNI', ...
63-
'hemi', hemisphere, ...
62+
entities = struct('hemi', hemisphere, ...
63+
'space', 'MNI', ...
6464
'label', roiName, ...
6565
'desc', atlasName);
6666
nameStructure = struct('entities', entities, ...

src/roi/thresholdToMask.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
p = bids.internal.parse_filename(inputImage);
4646

4747
p.suffix = 'mask';
48+
49+
% add peakThreshold and clusterSizeInfo to desc
4850
if ~isfield(p.entities, 'desc')
4951
p.entities.desc = '';
5052
end

0 commit comments

Comments
 (0)