Thanks for your reply. It works.
I have 1 more general question.
When running: mktemplate-sess -s $SUBJECT -df sessdirfile -fsd bold_day1
I get 2 files (template.log & template.nii.gz) under the functional subdirectory(bold_day1) and under each run(001, 002 etc).
When I run: mc-sess -s $SUBJECT -df sessdirfile -fsd bold_day1 -per-run
Does that command use the template for motion correction that was created under each run? Not the one under the functional subdirectory?
My understanding of mktemplate-sess and mc-sess is that mktemplate-sess produces the template per each run (saves the template file under each run) and/or the template per session(?) (saves the template file under the functional subdirectory).
Then mc-sess utilizes the template for motion correction.
If I use -per-run, mc-sess utilizes the template file created per each run and if I use -per-session, mc-see utilizes the template file created per session(file under the functional subdirectory).
Is my understanding correct?
Thanks a lot!