I was recently running an analysis for several task runs, each with a different TR. Because this line prints out the TR in the log message, I assumed it also automatically changes it in the fsf file (as is done in other steps like smoothing). However, clearly it doesn't change it. I suggest adding a line to ensure the actual TR extracted from the image file is the one used in the .fsf file.
Something like this should work:
sed -i "s/fmri(tr) [0-9.]*/fmri(tr) ${TR_vol}/" ${FEATDir}/design.fsf
https://github.com/Washington-University/HCPpipelines/blob/0e220bc3e1ed1db40693377aa171d2d68c466911/TaskfMRIAnalysis/scripts/TaskfMRILevel1.sh#L279
Hi,
I was recently running an analysis for several task runs, each with a different TR. Because this line prints out the TR in the log message, I assumed it also automatically changes it in the fsf file (as is done in other steps like smoothing). However, clearly it doesn't change it. I suggest adding a line to ensure the actual TR extracted from the image file is the one used in the .fsf file.
Something like this should work: sed -i "s/fmri(tr) [0-9.]*/fmri(tr) ${TR_vol}/" ${FEATDir}/design.fsf
Thanks
Moataz