Skip to content

Commit 9d84a56

Browse files
committed
Merge branch 'master' of https://github.com/BIDS-Apps/SPM
2 parents 75a2c74 + 0fee809 commit 9d84a56

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,31 @@ To build the container, type:
4747
$ docker build -t <yourhandle>/spm12 .
4848
```
4949

50+
### Configuration file
51+
52+
The configuration file is a MATLAB script detailing the analysis pipeline to be executed. Two struct variables, ```BIDS``` and ```BIDS_App``` are available from within the script, containing details from the command line and the BIDS-formatted dataset. In particular, the ```BIDS``` structure can be queried using the ```spm_BIDS()``` function. The default configuration files for first and second level analyses are ```pipeline_participant.m``` and ```pipeline_group.m```. A template for a single configuration file for all levels could be as follow:
53+
54+
```
55+
if strcmp(BIDS_App.level,'participant')
56+
% First level analysis
57+
58+
% Get T1-weighted image filename for given subject:
59+
% a = spm_BIDS(BIDS,'data', 'modality','anat', 'type','T1w');
60+
% ...
61+
else
62+
% Second level analysis
63+
64+
% The name of the directory containing first level outputs is stored in:
65+
% BIDS_App.outdir
66+
% ...
67+
end
68+
```
69+
5070
## Error Reporting
5171

5272
If you have a specific problem with the SPM BIDS App, please open an [issue](https://github.com/BIDS-Apps/SPM/issues) on GitHub.
5373

54-
If your issue concerns SPM more generally, please use the [SPM mailing list](https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=spm)
74+
If your issue concerns SPM more generally, please use the [SPM mailing list](https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=spm).
5575

5676
## Acknowledgement
5777

0 commit comments

Comments
 (0)