Skip to content

Commit 108fac4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into slice
2 parents 4b25c7f + b31e664 commit 108fac4

File tree

13 files changed

+61
-12
lines changed

13 files changed

+61
-12
lines changed

.github/workflows/run_tests_notebooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt-get -y install unzip wget tree
3131
3232
- name: Install MATLAB
33-
uses: matlab-actions/[email protected].0
33+
uses: matlab-actions/[email protected].1
3434
with:
3535
# MATLAB release to set up R2020a
3636
release: R2023a

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
git clone https://github.com/MOcov/MOcov.git --depth 1
109109
110110
- name: Install MATLAB
111-
uses: matlab-actions/[email protected].0
111+
uses: matlab-actions/[email protected].1
112112
with:
113113
release: ${{ matrix.matlab }}
114114

@@ -203,7 +203,7 @@ jobs:
203203
git clone https://github.com/MOcov/MOcov.git --depth 1
204204
205205
- name: Install MATLAB
206-
uses: matlab-actions/[email protected].0
206+
uses: matlab-actions/[email protected].1
207207
with:
208208
release: ${{ matrix.matlab }}
209209

@@ -299,7 +299,7 @@ jobs:
299299
run: make -C demos/bayes data_ds000114
300300

301301
- name: Install MATLAB
302-
uses: matlab-actions/[email protected].0
302+
uses: matlab-actions/[email protected].1
303303
with:
304304
release: ${{ matrix.matlab }}
305305

.github/workflows/tests_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
git clone https://github.com/MOcov/MOcov.git --depth 1
108108
109109
- name: Install MATLAB
110-
uses: matlab-actions/[email protected].0
110+
uses: matlab-actions/[email protected].1
111111
with:
112112
release: ${{ matrix.matlab }}
113113

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ repos:
6666
- id: rst-inline-touching-normal
6767

6868
- repo: https://github.com/pycqa/isort
69-
rev: 6.0.0
69+
rev: 6.0.1
7070
hooks:
7171
- id: isort
7272
args: [--profile, black]

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525

2626
### Changed
2727

28+
* [ENH] Add SPM's contrast number in filename of each contrasts output filename #1347 by @Remi-Gau
29+
2830
### Deprecated
2931

3032
### Removed

demos/openneuro/models/model-ds000114_desc-testRetestVerbal_smdl.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,44 @@
7676
"X": [
7777
1
7878
],
79-
"Type": "glm"
79+
"Type": "glm",
80+
"Software": {
81+
"bidspm": {
82+
"Results": [
83+
{
84+
"name": [
85+
"Task"
86+
],
87+
"p": 0.05,
88+
"MC": "FWE",
89+
"png": true,
90+
"binary": true,
91+
"threshSpm": true,
92+
"nidm": true,
93+
"montage": {
94+
"do": true,
95+
"orientation": "axial",
96+
"slices": [
97+
-26,
98+
-22,
99+
-18,
100+
-14,
101+
-10,
102+
-6,
103+
-2,
104+
2,
105+
6
106+
],
107+
"background": {
108+
"suffix": "T1w",
109+
"desc": "preproc",
110+
"modality": "anat"
111+
}
112+
}
113+
}
114+
]
115+
}
116+
}
80117
},
81118
"DummyContrasts": {
82119
"Test": "t"

docs/source/output/outputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bidspm-stats
109109
│   ├── spmT_0001.nii |
110110
│   ├── spmT_*.nii ----------
111111
│   |
112-
│   ├── sub-blnd01_task-taskName_space-space_desc-contrastName_label-0039_p-0pt050_k-10_MC-FWE_montage.png
112+
│   ├── sub-blnd01_task-taskName_space-space_label-0039_desc-contrastName_p-0pt050_k-10_MC-FWE_montage.png
113113
│   |
114114
│   ├── sub-blnd01_task-taskName_space-space_desc-afterEstimation_designmatrix.png
115115
│   ├── sub-blnd01_task-taskName_space-space_desc-beforeEstimation_designmatrix.png

src/stats/results/renameOutputResults.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,20 @@ function renameOutputResults(opt, result, subLabel)
1616
end
1717

1818
if result.nidm
19+
% TODO currently name of nidm file does not include
20+
% the label of the contrast that was used to generate it.
1921
renameNidm(opt, result, subLabel);
2022
end
2123

2224
if result.png
25+
% TODO currently name of PNG file does not include
26+
% the label of the contrast that was used to generate it.
2327
renamePngCsvResults(opt, result, '.png', subLabel);
2428
end
2529

2630
if result.csv
31+
% TODO currently name of CSV file does not include
32+
% the label of the contrast that was used to generate it.
2733

2834
renamePngCsvResults(opt, result, '.csv', subLabel);
2935

src/stats/results/returnResultNameSpec.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
nameSpec.entities.sub = result.label;
88
nameSpec.entities.task = strjoin(opt.taskName, '');
99
nameSpec.entities.space = result.space{1};
10+
if isfield(result, 'contrastNb')
11+
nameSpec.entities.label = sprintf('%04.0f', result.contrastNb);
12+
end
1013
nameSpec.entities.desc = result.name;
1114
nameSpec.entities.p = convertPvalueToString(result.p);
1215
nameSpec.entities.k = num2str(result.k);

0 commit comments

Comments
 (0)