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  

|
May 30, 2018 10:17AM
There is no new uncertainty estimator for this (unfortunately).

Yes, it seems that DSI Studio ignores the header information of location, resetting the corner of the volume to (0,0,0) rather than keeping the origin.
GQI_GFA.nii.gz
R-to-L extent:  -254.000 [R] -to-    -0.000     -step-     2.000 mm [128 voxels]
ROI_ICMAP_GMI+orig
R-to-L extent:  -129.041 [R] -to-   124.959 [L] -step-     2.000 mm [128 voxels]

To fix this, you can resample+refit the datasets output by DSI Studio:
#!/bin/tcsh

set refset    = [whatever is a reference data set for you with correct grid/location/etc., such as your *GMI* file]
set all_dsis  = `ls GQI*nii.gz`  # or whatever your DSI-Studio-named files are-- take all of them and process in loop below

# ref set's orient
set refo      = `3dinfo -orient $refset`

foreach ff ( $all_dsis )

    echo "\n\n+++ Proc'ing dset: $ff\n\n"

    set gg   = $ff:gas/.nii.gz//
    set fout = ${gg}_${refo}.nii.gz

    # new orient for dset (this information is initially *correct* in
    # the input dset as it is, so we change both BRIK+HEAD info);
    # create a new dset whose name reflects the new orient
    3dresample             \
        -orient $refo      \
        -input  $ff        \
        -prefix $fout

    # now change origin of the dset (we are saying this information is
    # *incorrect* in the dset, so we just change the header; the
    # distiction may be a bit trivial, since the origin is juuust info
    # in the header, but there you have it); *overwrites* input dset.
    3drefit \
        -duporigin $refset \
        $fout
end
After that, your dsets overlap appropriately (make sure you verify with 3dinfo/visually!)

--pt
Subject Author Posted

How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 May 02, 2018 10:20PM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 03, 2018 05:59AM

Re: How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 May 03, 2018 08:57AM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 03, 2018 01:03PM

Re: How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 May 04, 2018 04:33AM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 04, 2018 08:11AM

Re: How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 May 24, 2018 11:49AM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 30, 2018 09:38AM

Re: How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 May 25, 2018 12:58PM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 30, 2018 10:17AM

Re: How to correct DWI EPI distortion with only one b value PA volume? Attachments

EXP.2086 June 02, 2018 03:39AM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor June 03, 2018 01:50PM

Re: How to correct DWI EPI distortion with only one b value PA volume?

EXP.2086 May 24, 2018 12:06PM

Re: How to correct DWI EPI distortion with only one b value PA volume?

ptaylor May 30, 2018 10:18AM