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 25, 2021 05:29PM
I've helped a few people with ASL processing, and there seem to be a variety of approaches. BTW, Francois Lalonde, here at NIH is my principal go-to person for questions about ASL analysis. There are couple parts people are interested in - motion correction and difference datasets. Differences are computed a few different ways, and I've included one way below. Note, I haven't actually tried this particular way for real data, but you may use this as a starting example. Proceed with caution....

# extract evens
3dbucket -prefix evens.nii.gz myASLdset.nii'[0..$(2)]'
# extract odds
3dbucket -prefix odds.nii.gz myASLdset.nii'[1..$(2)]'

# motion correct evens
3dvolreg -prefix odds_mc.nii.gz -1Dmatrix_save odds 'odds.nii.gz'
# motion correct odds by applying evens' transformation to odds
# assumes no motion between even and odds but doesn't add micro-motion differences
# to be introduced.
# This causes an extra interpolation if going to standard space separately
3dAllineate -prefix evens_mc.nii.gz -1Dmatrix_apply odds.aff12.1D -master 'evens.nii.gz'

# calculate differences
# use odds, evens and even+1 (the next even) to average
3dcalc -a odds_mc.nii.gz -b evens_mc.nii.gz -c evens_mc.nii.gz'[1..$]' \
-expr 'a-(b+c)/2' -prefix ASL_diff.nii.gz

# consider putting a TR in seconds into the dataset (~2*TRorig)
3drefit -TR 4s ASL_diff.nii.gz



Edited 1 time(s). Last edit at 03/25/2021 05:37PM by Daniel Glen.
Subject Author Posted

Scripts for ASL-CBF preprocessing and analysis

victorpsanchez November 21, 2018 11:31AM

Re: Scripts for ASL-CBF preprocessing and analysis

fmri68 March 23, 2021 11:03AM

Re: Scripts for ASL-CBF preprocessing and analysis

Daniel Glen March 25, 2021 05:29PM