Jonathan, I am currently doing it as follow.
1. Create two models, one with full registration and the other with only affine
transformation from EPI to T1.
2. Run the 1st session with the model of full registration and run the other
sessions with the model of affine transformation.
3. Creat a script to do the following: Copy report_reg.html from the .feat
folder of the 1st session to the other sessions. Copy highres2standard*,
standard*, highres_head* from the reg folder of 1st session .feat (e.g.,
run_1.feat/reg/highres2standard*) to the corresponding reg folder of other
sessions. Be careful NOT to copy and overwrite and example_func* files
(including affine transformation information).
4. Within the same script above, change folder into the reg folder of the other
sessions, and run the command you can find in the log file. See below the
example bash codes I use for this purpose. After doing this, you should have
all sessions sharing the same T1 to standard template FNIRT transformation.
#---
tmpCmd="convert_xfm -omat example_func2standard.mat -concat
highres2standard.mat example_func2highres.mat"
eval $tmpCmd
tmpCmd="applywarp --ref=standard --in=example_func --
out=example_func2standard --warp=highres2standard_warp --
premat=example_func2highres.mat"
eval $tmpCmd
tmpCmd="convert_xfm -inverse -omat standard2example_func.mat
example_func2standard.mat"
eval $tmpCmd
tmpCmd="slicer example_func2standard standard -s 2 -x 0.35 sla.png -x 0.45
slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55
slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65
sll.png"
eval $tmpCmd
tmpCmd="pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png
+ slg.png + slh.png + sli.png + slj.png + slk.png + sll.png
example_func2standard1.png"
eval $tmpCmd
tmpCmd="slicer standard example_func2standard -s 2 -x 0.35 sla.png -x 0.45
slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55
slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65
sll.png"
eval $tmpCmd
tmpCmd="pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png
+ slg.png + slh.png + sli.png + slj.png + slk.png + sll.png
example_func2standard2.png"
eval $tmpCmd
tmpCmd="pngappend example_func2standard1.png -
example_func2standard2.png example_func2standard.png"
eval $tmpCmd
tmpCmd="/bin/rm -f sl?.png"
eval $tmpCmd
#---
On Mon, 1 Sep 2008 15:48:04 +0100, Jonathan O'Muircheartaigh
<[log in to unmask]> wrote:
>Hello
>
>I have a slightly optimistic question given how recent FNIRT is. I'm running
>multiple FEAT analyses within subjects, however, it is inefficient to FNIRT
>the subjects structural to the template every for each session/paradigm. Is
>there a nice way to copy a structural-to-template registration from one feat
>directory to another and apply it to the data without re-running FNIRT? So
>it will be recognised at higher-level?
>
>All the best
>Jonathan
|