Hi. I’m new to AFNI and scripting, so forgive me if my query seems rather elementary. I am attempting to do a resting-state analysis and I’d like to execute some commands for each participant simultaneously, so as to avoid having to do them one by one which would be an enormous time investment (and tedious to boot). I have a dataset of masked peak ROIs for each participant and I am using this command to extract the time series from the mask peak for a particular ROI:
3dROIstats -1DRformat -quiet -mask file name > … file.1D
My question is how do I execute this command for multiple participants simultaneously in AFNI, all of which lie in different folders but share the same parent folder, so that I get a 1D file for each participant? Also, I have a number of different ROIs (and masks) which I need to do this for, so can someone please suggest an efficient script which executes this command for certain participants and for a certain ROI?
After this, I will be correlating the 1D file extracted time series with every other voxel using ‘3dTcorr1D’. Again, I would like to do this for a certain set of participants simultaneously. Subsequently, I’ll be converting this file into fisher’s z and talaraich which I would again like to do simultaneously for multiple, select participants. Can someone please demonstrate how I can accomplish this? I’d really appreciate your help!
Thank you in advance,
Jen