Skip to content

Commit f93daa7

Browse files
authored
Merge pull request #111 from cpp-lln-lab/bids_matlab
[MAINT] use bids matlab main (remove atlas entity), update RTD config
2 parents 5334bc5 + ddeb124 commit f93daa7

21 files changed

+43
-36
lines changed

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Required
77
version: 2
88

9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: '3.12'
13+
914
# Build documentation in the docs/ directory with Sphinx
1015
sphinx:
1116
configuration: docs/source/conf.py
@@ -14,6 +19,5 @@ sphinx:
1419

1520
# Optionally set the version of Python and requirements required to build your docs
1621
python:
17-
version: '3.8'
1822
install:
1923
- requirements: requirements.txt

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ clean_lib:
88
rm -rf lib/bids-matlab
99

1010
install_dev:
11-
git clone https://github.com/bids-standard/bids-matlab.git --branch dev --depth 1 lib/bids-matlab
11+
git clone https://github.com/bids-standard/bids-matlab.git --branch main --depth 1 lib/bids-matlab
1212

1313
version.txt: CITATION.cff
1414
grep -w "^version" CITATION.cff | sed "s/version: /v/g" > version.txt
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939

4040
case 'visfatlas'
4141

42-
atlasFilename = fullfile(atlasDir, 'space-MNI_atlas-visfAtlas_dseg.nii');
42+
atlasFilename = fullfile(atlasDir, 'space-MNI_seg-visfAtlas_dseg.nii');
4343

4444
case 'hcpex'
4545

4646
atlasFilename = fullfile(atlasDir, 'HCPex.nii');
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

0 commit comments

Comments
 (0)