AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
September 08, 2021 09:43AM
Update:

The problem is solved. Here is a efficient code which functions.

directory=/users/philipp/desktop/fmri/dataset/subjects
for subject in subj1_exp1
do
for fMRIruns (fitts.Subject_1+tlrc)
do
for TimeWindows ('[21..75]' '[199..253]' '[427..481]' '[489..543]' '[549..603]' '[659..713]' '[837..891]' '[893..947]' '[955..1009]' '[1013..1067]')
do
cd $directory/$subject/Preprocessing
echo "Processing $subject ... $TimeWindows ..."
3dTcat \
-prefix $TimeWindows.$fMRIruns \
-session $directory/$subject/TimeWindows \
-verb \
-tr 1.0 \
$fMRIruns.BRIK\'$TimeWindows\'
done
done
done

Explanation of the code (written in Zsh): This code takes the file "fitts.Subject_1+tlrc" as input. It then creates distinct time windows for all assigned windows in the "for TimeWindows" loop. That is, the here assigned sub-bricks are extracted from the run and copied into distinct time windows as output files. Hope this helps people in the same situation.

Feel free to comment and have a good day. Special thanks to Yasir (the problem solver) if you read this.

Philipp
Subject Author Posted

3dTcat - Creating/cutting distinct time-series within one code

Philipp September 08, 2021 05:15AM

Re: 3dTcat - Creating/cutting distinct time-series within one code

Philipp September 08, 2021 08:48AM

Re: 3dTcat - Creating/cutting distinct time-series within one code

Philipp September 08, 2021 09:43AM

Re: 3dTcat - Creating/cutting distinct time-series within one code

rick reynolds September 08, 2021 10:19AM