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 08:48AM
An update:

I just realized that I could simply add 3dTcat as program over and over again, like in the following example (which paradigmatically only shows two time windows):

directory=/users/philipp/desktop/fmri/dataset/subjects
for subject in subj1_exp1
do
for fMRIruns (fitts.Subject_1+tlrc)
do
cd $directory/$subject/Preprocessing
echo "Processing $subject ..."

3dTcat \
-prefix 21-75.$fMRIruns \
-session $directory/$subject/TimeWindows \
-verb \
-tr 1.0 \
$fMRIruns'[21..75]'

3dTcat \
-prefix 199-253.$fMRIruns \
-session $directory/$subject/TimeWindows \
-verb \
-tr 1.0 \
$fMRIruns'[199..253]'

done
done

This actually works and one could now add all required time windows this way. 3dTcat then creates distinct outputs for each time window (instead of merging them all into one file). It is not a nice way to do this though, as the code would become really long depending on the number of time windows. So, if there is a nicer way to code this, please let me know.

Thanks, Philipp



Edited 1 time(s). Last edit at 09/08/2021 08:49AM by 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