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  

|
January 11, 2016 12:38PM
Hi there

I had a query about scaling the beta coefficients to percent signal change which then lead to checking my script to make sure I have all the nuts and bolts for any fMRI analysis. I have attached parts of the script I use. Can you clarify on the stance of normalisation when one stitches together multiple runs? what is best way to scale or normalise? Is it better to run the analysis and then scale the betas at the very end? Or is there another way?

Also, how does a stand alone 3dREMLFit function (like the one in my script below) work as far as scaling is concerned? Does it take care of scaling without a flag?Can the output from this 3dREMLFit code be used to extract beta coefs without worrying about scaling them?

Thank you.


afni_proc.py -subj_id $i \
-dsets $run1 $run2 $run3 $run4 $run5 \
-do_block align tlrc \
-copy_anat $t1 \
-volreg_align_to last \
-volreg_align_e2a \
-volreg_tlrc_warp \
-blur_in_automask \
-blur_size 8 \
-mask_apply anat \
-regress_stim_files $design1 $design2 $design3 $design4 $design5 $design6 $design7 $design8 $design9 $design10 \
-regress_stim_labels $name1 $name2 $name3 $name4 $name5 $name6 $name7 $name8 $name9 $name10 \
-regress_basis 'SPMG1' \
-regress_censor_motion 1.0 \
-regress_opts_3dD -rout \
-regress_censor_first_trs 2 \
-regress_opts_3dD -rout \
-regress_est_blur_epits \
-regress_est_blur_errts \
-regress_use_stim_files


3dREMLfit -matrix X.xmat.1D \
-input "pb04.${i}.r01.scale+tlrc.HEAD pb04.${i}.r02.scale+tlrc.HEAD pb04.${i}.r03.scale+tlrc.HEAD pb04.${i}.r04.scale+tlrc.HEAD pb04.${i}.r05.scale+tlrc.HEAD" \
-fout -rout -tout -Rbuck stats.${i}_REML -Rvar stats.${i}_REMLvar \
-Rfitts fitts.${i}_REML -Rerrts errts.${i}_REML -verb
Subject Author Posted

Scaling betas

swijeakumar January 11, 2016 12:38PM

Re: Scaling betas

rick reynolds January 13, 2016 09:23AM