Jan 14, 2020

Public workspaceCreating Tensor Maps

  • 1University of Arizona
Icon indicating open access to content
QR code linking to this content
Protocol CitationCourtney Comrie 2020. Creating Tensor Maps. protocols.io https://dx.doi.org/10.17504/protocols.io.8jyhupw
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: In development
We are still developing and optimizing this protocol
Created: October 21, 2019
Last Modified: December 10, 2020
Protocol Integer ID: 29016
Abstract
This protocol will provide a basic guide creating Tensor maps.
Note: Steps may vary based upon data.
Introduction
Introduction
This protocol will present the steps needed to compute multiple tensor maps on the HPC in TORTOISE. The protocol assumes that DIFFPREP and DRBUDDI have already been applied.
Create Mask from T2 Structural
Create Mask from T2 Structural
Open up ITK-snap to create mask.

Type the following in a terminal:

Command
cd /rsgrps/hutchinsone/Singularity_Containers
module load singularity
singularity run nklab-neurotools-v0.4.sif itksnap

Once ITK-SNAP opens browse to the structural image.


The folder you should be pulling the structural.nii image from is in DTITest_DTI_proc_DRBUDDI_proc



Click on the snake tool to start making the mask.



Move the red lines to adjust boundaries for the fill function.


Select Segment 3D after you finish adjusting the red lines.

Select the blue thresholding view and then adjust your thresholding till you are satisfied.


For thresholding typically you want to remove bone, muscle tissue, and eyes if possible.
Select Next in the lower right hand corner.
Click the Add Bubble at Cursor button while clicking around on all the 3 different views to move the cursor.


Once you have added enough "bubbles" select next.
Select the play button to grow the bubbles.

You can additionally select the update button at the bottom of the screen to view your growing mask.


When the mask is done select the pause button and click finish.
You can select update a second time and your completed mask will appear in the lower left hand corner.


Save your mask as a NIFTI file, and exit out of ITK-SNAP.
Estimate Tensor
Estimate Tensor
Type the following to get information about the command.
Command
EstimateTensorNLLS

Type the following:

Command
EstimateTensorNLSS -i directory_DRBUDDI_proc/file_name.list -m directory/mask_name.nii

This creates two files a _DT.nii and a _AM.nii. You will use the _DT.nii file.
Compute Tensor Map
Compute Tensor Map
To create every tensor map type the following command:

Command
ComputeAllTensorMaps.bash directory/tensor_file_name.nii

The above command runs a script to create all tensor maps available, but if you want to only create a certain tensor map you can use can just type:

Command
ComputeDECMap -i directory/tensor_file_name.nii
This example will only output a DEC map, but if you want to output another map just change the 'DEC' to be the name of the desired map.
Open your DEC map in ITK-SNAP.

Click on the Layer Inspector button:



Choose your display mode to be RGB Display.


Below is the finished RGB display of your DEC map.