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  

|
December 14, 2022 11:36AM
Hi Jenna,

The only special things to do for that are to pass the motion parameters via -regress_motion_file, and to pass any other (sets of?) regressors of no interest via -regress_extra_ortvec (and _labels). Beyond that, would you like to do blurring and/or scaling?

Just for a start, here is an example that processes like rest, but with no extra regressors of no interest for now.

It gives:
- processing blocks (mask blur scale regress)
- 3 sets of input files (EPI, anat, motion (task is ignored, but could be passed))
- processing options (here, blur size, motion regressor types and censor limits)
- if you want afni_proc.py to do the high-pass filtering with sinusoids, this includes such options
- then QC options (radial correlate, blur estimation and pythonic HTML)

# assuming shell-specific $ddir pointing to data:
afni_proc.py -subj_id Santa                                  \
   -blocks                   mask blur scale regress         \
   -dsets                    $ddir/pb02.FT.r0*.HEAD          \
   -copy_anat                $ddir/anat_final.FT+tlrc.HEAD   \
   -regress_motion_file      $ddir/dfile_rall.1D             \
   -blur_size                6                               \
   -regress_censor_outliers  0.05                            \
   -regress_motion_per_run                                   \
   -regress_apply_mot_types  demean deriv                    \
   -regress_censor_motion    0.2                             \
                                                             \
   -regress_bandpass         0.01 1                          \
   -regress_polort           2                               \
                                                             \
   -radial_correlate_blocks  tcat                            \
   -regress_est_blur_epits                                   \
   -regress_est_blur_errts                                   \
   -html_review_style        pythonic

If you would like this to be for task, add corresponding -regress_ options. I did not put any -regress_extra_ortvec options (e.g. squared motion terms and sinusoids, or other confounds if you want them), but they are simple to include. For example, you could pass that entire confounds file, but it might be better to separate at least the motion, so that afni_proc.py can do censoring and report on it with the QC.

Pre-steady state volumes are better off being removed before the the analysis (-tcat_remove_first_trs, for which timing files or the fmriprep regressors might need altering). Including them in any temporal computations is not a good idea, including those done by fmriprep.

Please feel free to adjust for your experiment and let me know.

- rick
Subject Author Posted

Denoising resting state fMRIPrep Data Attachments

jblujus December 06, 2022 08:00PM

Re: Denoising resting state fMRIPrep Data

rick reynolds December 07, 2022 09:35AM

Re: Denoising resting state fMRIPrep Data

jblujus December 07, 2022 12:21PM

Re: Denoising resting state fMRIPrep Data

rick reynolds December 14, 2022 11:36AM