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  

|
July 16, 2012 04:36PM
A note for TORTOISE users interested in using this tractography:

TORTOISE outputs via DIFF_CALC have slightly different naming and file conventions than `3dDWItoDT -sep_dsets'. The various inputs to new AFNI tractography programs (3dTrackID, 3dDWUncert, 3dProbTrackID) are mostly assumed to have come from 3dDWItoDT... But never fear! I believe that there will soon be an option in the DIFF_CALC to output with these particular conventions in mind. Until then, I've written a very simple bash script to convert the outputs of TORTOISE's DIFF_CALC to match the files for AFNI-tracking. I called the file `convert_TORT_AFNItrack.sh', and the text of it is included at the bottom of this message below the dotted line (so you can make your own such file by copy-and-paste-ing).

The script takes two options-- the prefix of the TORTOISE *.nii files and whatever name you want to be a prefix for the new ones it creates (which are zipped themselves so as to take up less space). If your TORTOISE files are zipped NIFTI files (*.nii.gz), then you can put a third option in the commandline (including quotation marks): ".gz" .

To use, one then simply enters the following in a commandline:
bash convert_TORT_AFNItrack.sh [Tortoise prefix] [AFNI prefix] ".gz"

This assumes that you've asked DIFF_CALC to output eigenvalues (*_EV.nii), eigenvectors (*_EG.nii), fractional anisotropy (*_FA.nii), and trace (*_TR.nii), which is simply converted to mean diffusivity (MD). Please let me know if there are any difficulties with this.

Thanks,
pt


(cut and paste from below this dotted line (not including the line!) to make your own
convert_TORT_AFNItrack.sh script)
-----------------------------------------------------------------------------------------------------------------------
#!/bin/sh:

# convert *.nii output of TORTOISE DIFF_CALC to format for AFNI tractography
# simply putting in the input (TORTOISE) prefix, then the output (AFNItrack) prefix,
# and one can also convert *.nii.gz files by having a third option: ".gz"
# EXAMPLE USE:
# bash convert_TORT_AFNItrack.sh TORT_NAME AFNI_NAME ".gz"
TORTPREF=${1} ; AFNIPREF=${2} ; POSTFIX=${3}

# FA
3dcalc -a ${TORTPREF}_FA.nii${POSTFIX} -expr 'a' -prefix ${AFNIPREF}_FA.nii.gz
# first eigenvalue
3dcalc -a ${TORTPREF}_EV.nii${POSTFIX}[0] -expr 'a' -prefix ${AFNIPREF}_L1.nii.gz
# mean diffusivity = trace/3
3dcalc -a ${TORTPREF}_TR.nii${POSTFIX} -expr 'a/3.0' -prefix ${AFNIPREF}_MD.nii.gz
# eigenvectors
3dcalc -a ${TORTPREF}_EG.nii${POSTFIX}[0..2] -expr 'a' -prefix ${AFNIPREF}_V1.nii.gz
3dcalc -a ${TORTPREF}_EG.nii${POSTFIX}[3..5] -expr 'a' -prefix ${AFNIPREF}_V2.nii.gz
3dcalc -a ${TORTPREF}_EG.nii${POSTFIX}[6..8] -expr 'a' -prefix ${AFNIPREF}_V3.nii.gz


echo "Done copying/renaming"
Subject Author Posted

new tractography programs in AFNI

ptaylor July 06, 2012 10:21AM

Re: new tractography programs in AFNI

Peter Molfese July 06, 2012 11:27AM

Re: new tractography programs in AFNI

Chad N July 11, 2012 04:49PM

Re: new tractography programs in AFNI

ptaylor July 16, 2012 04:16PM

Re: new tractography programs in AFNI

ptaylor July 16, 2012 06:49PM

Re: new tractography programs in AFNI

Chad N July 17, 2012 09:56AM

Re: new tractography programs in AFNI

ziad July 17, 2012 02:56PM

Re: new tractography programs in AFNI

Chad N July 18, 2012 11:40AM

Re: new tractography programs in AFNI

Hang Joon Jo July 11, 2012 06:00PM

Re: new tractography programs in AFNI

ptaylor July 16, 2012 04:36PM

Re: new tractography programs in AFNI

Matt Hoptman July 17, 2012 11:15AM

Re: new tractography programs in AFNI

ptaylor July 17, 2012 12:50PM

Re: new tractography programs in AFNI

Matt Hoptman July 17, 2012 01:47PM

Re: new tractography programs in AFNI

ptaylor July 17, 2012 02:27PM

Re: new tractography programs in AFNI

JoJo August 22, 2012 06:53AM

Re: new tractography programs in AFNI

Daniel Glen August 22, 2012 12:41PM

Re: new tractography programs in AFNI

JoJo September 01, 2012 01:03PM

Re: new tractography programs in AFNI

Daniel Glen September 01, 2012 03:08PM

Re: new tractography programs in AFNI

JoJo August 19, 2012 02:58AM

Re: new tractography programs in AFNI

ptaylor August 29, 2012 08:59AM

Re: new tractography programs in AFNI

ptaylor September 09, 2012 08:43AM

Re: new tractography programs in AFNI

ptaylor October 26, 2012 10:23AM

Re: new tractography programs in AFNI

Phil Burton February 08, 2013 05:34PM

Re: new tractography programs in AFNI

ziad February 11, 2013 04:08PM

Re: new tractography programs in AFNI

John February 12, 2013 01:39AM

Re: new tractography programs in AFNI

ziad February 12, 2013 09:28AM

Re: new tractography programs in AFNI

Phil Burton February 12, 2013 01:59PM