Configure mkanalysis-sess: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
-TR ${TR} \ | -TR ${TR} \ | ||
-refeventdur ${REFEVENTDUR} \ | -refeventdur ${REFEVENTDUR} \ | ||
-analysis booth500.sm${SMOOTHING}.${hemi} | |||
-per-run -force | -per-run -force | ||
done | done | ||
The above code could be saved as a script in your ~/bin directory (e.g., mkanalysis.sh) and modified as required for different datasets or parametric choices. | The above code could be saved as a script in your ~/bin directory (e.g., mkanalysis.sh) and modified as required for different datasets or parametric choices. |
Revision as of 14:24, 14 April 2016
The first step in the first-level analysis is to configure analyses and contrasts. This step describes what preprocessing stages should have been run as well as the parameters needed to construct a design matrix (no data are analyzed yet). This is done with mkanalysis-sess.
A good way to make it clear how you are configuring your analysis is to declare important parameters as shell environment variables, and then use them when calling mkanalysis-sess:
SMOOTHING=6; REFEVENTDUR=2.0; TR=2.0; NCONDITIONS=6; SURFACE=self; HEMIS=( lh rh ); PARFILE=booth.par;
for hemi in "${HEMIS[@]}" do mkanalysis-sess \ -fsd bold \ -surface ${SURFACE} ${hemi} \ -fwhm ${SMOOTHING} \ -event-related \ -paradigm ${PARFILE} \ -nconditions ${NCONDITIONS} \ -timewindow 24 \ -spmhrf 2 \ -polyfit 2 \ -mcextreg \ -TR ${TR} \ -refeventdur ${REFEVENTDUR} \ -analysis booth500.sm${SMOOTHING}.${hemi} -per-run -force done
The above code could be saved as a script in your ~/bin directory (e.g., mkanalysis.sh) and modified as required for different datasets or parametric choices.