So, I'm assuming two things from your post- one, your subject data are in standard space, and two, you want to do voxel-wise second-level analyses, rather than taking the average from each ROI and doing a t-test on those values.
This code essentially takes the values from an ROI and copies them to another part of the brain, overwriting the values there. Then, you can do a whole-brain second-level test, but use an explicit mask for it.
Let me know if there are any problems or if you need clarification about the code.
- Taylor
|