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  

|
April 28, 2020 04:09PM
Ah, this very helpful. Our AFNI install is old at this point, so I think that is the first thing to update that. I lose region information during the resampling steps. My goal is to end up with a matrix subjects by region, so any suggestions that get to that are super helpful.

Here is my bash script, simplified:

#!/bin/bash
module load afni/17.3.06

cd <path>/noddi/dset/derivatives/
clear
for file in *; do
echo $file
s=${file//sub-/}
echo "You are processing subject $s"

3dcalc -a <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp+orig -expr 'a' -prefix <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp_short -datum short -overwrite

3dfractionize -template <path>/noddi/dset/derivatives/sub-"$s"/ses-S1/NODDI/NDI.nii.gz \
-input <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp_short+orig \
-vote \
-clip 0.5 \
-preserve \
-prefix <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp_noddi_frac+orig \
-overwrite

3dROIstats -numROI 194 -zerofill NA -mask <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp_noddi_frac+orig \
<path>/noddi/dset/derivatives/sub-"$s"/ses-S1/NODDI/NDI.nii.gz > <path>/noddi/dset/derivatives/sub-"$s"/ses-S1/NODDI/NDI_a2009.txt

done

After this, I have an R script that brings everything into a subject by ROI matrix.
Subject Author Posted

3dROIstats dealing with different ROI numbers across subjects

anthonystevendick April 28, 2020 11:18AM

Re: 3dROIstats dealing with different ROI numbers across subjects

ptaylor April 28, 2020 03:52PM

Re: 3dROIstats dealing with different ROI numbers across subjects

anthonystevendick April 28, 2020 04:09PM

Re: 3dROIstats dealing with different ROI numbers across subjects

anthonystevendick April 29, 2020 11:23AM

Re: 3dROIstats dealing with different ROI numbers across subjects

ptaylor April 29, 2020 02:28PM

Re: 3dROIstats dealing with different ROI numbers across subjects

anthonystevendick April 29, 2020 03:42PM

Re: 3dROIstats dealing with different ROI numbers across subjects

ptaylor May 03, 2020 04:58PM

Re: 3dROIstats dealing with different ROI numbers across subjects

anthonystevendick May 07, 2020 12:09PM

Re: 3dROIstats dealing with different ROI numbers across subjects

ptaylor May 07, 2020 04:43PM