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  

|
March 10, 2010 05:50PM
Thanks Gang,

I tried using 3dDeconvolve with -stim_times_AM2 and a trial type measure (I have individual trial information, so I will make that change later). The code is:

#!/bin/bash
# do amplitude modulated linear regression w/ tremor info as ABI

s=04
for t in posture; do # action posture; do
1dcat ${s}-${t}_pre_csf.1D ${s}-${t}_post_csf.1D > ${s}-${t}_csf.1D
3dDeconvolve -input ${s}-${t}_pre_scl+orig ${s}-${t}_post_scl+orig \
-jobs 3 -GOFORIT 10 -polort 1 -num_stimts 1 \
-stim_times_AM2 1 ${s}-posture_am2.1D 'WAV(1)' \
-xout -fout -tout -full_first \
-fitts ${s}-${t}_fitts -x1D ${s}-${t}_x1D.1D \
-bucket ${s}-${t}_bkt -cbucket ${s}-${t}_cbkt
done

and the 04-posture_am2.1D file has:
10*78.5:10 30*78.5:10 50*78.5:10 70*78.5:10 90*78.5:10 110*78.5:10 130*78.5:10 160*23.0:10 180*23.0:10 200*23.0:10 220*23.0:10 240*23.0:10 260*23.0:10 280*23.0:10

The measure before treatment was 78.5 and after treatment was 23.0, and the block design was:
tr block
--------
10 rest
10 task
10 rest
10 task
10 rest
10 task
10 rest
10 task
10 rest
10 task
10 rest
10 task
10 rest
10 task
10 rest

so the am2.1D file would look like two block design time series, where the blocks in the first half of the time series have a higher amplitude than those in the second half. Is there anything that you see wrong off the bat with the script? Thank you.
Subject Author Posted

Covariance b/w variable and fmri data

Haisam March 09, 2010 10:38AM

Re: Covariance b/w variable and fmri data

Gang Chen March 09, 2010 10:46AM

Re: Covariance b/w variable and fmri data

Haisam March 10, 2010 05:50PM

Re: Covariance b/w variable and fmri data

Gang Chen March 11, 2010 10:44AM