Hello,
I am a graduate student at UAB and am working on creating a matlab batch for the art_global. I want the function to correct multiple sessions (encode/stroop 1-3/ and Retrieve) for one participant at a time but am not sure how to enter that as an SPM.xY.P array (see art_global documentation below)? Also below is how I am trying to input my batch in matlab; could you please give me some suggestions?
art_global documentation
FORMAT art_global(Images, RealignmentFile, HeadMaskType, RepairType)
Images = Full path name of images to be repaired.
For multiple sessions, all Images are in one array, e.g.SPM.xY.P
RealignmentFile = Full path name of realignment file
For multiple sessions, cell array with one name per session.
HeadMaskType = 1 for SPM mask, = 4 for Automask
RepairType = 1 for ArtifactRepair alone (0.5 movement and add margin).
= 2 for Movement Adjusted images (0.5 movement, no margin)
= 0 No repairs are done, bad scans are found.
Listed in art_suspects.txt for motion adjustment
Below is my batch process
I use spm_select to select all my realigned files from a session
then I set z = ans (from spm_select)
art_global(z, rp_afCFNL00000000408-111713-00001-00001-0.txt, 4, 1)
Thanks in advance,
Nathan
|