Differences between revisions 19 and 22 (spanning 3 versions)
Revision 19 as of 2019-07-30 11:19:20
Size: 1696
Editor: AlexZsikla
Comment:
Revision 22 as of 2019-07-31 10:03:23
Size: 2285
Editor: AlexZsikla
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
== How to Use == == How to Run ==
Line 8: Line 8:
Usage: ./runProject.sh <Patient File> <OPTION: DTI> ''''' Note by running the executable with no parameters will also give information on how to run the program '''''
Line 10: Line 10:
DTI is an option that allows more metrics about the FA values to be outputted, however the required files must be in the proper location. Check file requirements below. === Main Bundle Analysis Program ===
Line 12: Line 12:
=== File System Requirements === Usage: ./bundleAnalysis.sh <Patient File> <OPTION: DTI>
Line 14: Line 14:
Requires a subject's file to look like this: DTI is an option that allows more metrics about the FA values to be outputted based on 4 volumes
Line 16: Line 16:
[[attachment:Examples of Subjects]] '' If specific files are wanted to be used or files cannot be found, run the programs individually (read below) ''
Line 18: Line 18:
[[attachment:4 Main Folders]] === Individually ===
Line 20: Line 20:
[[attachment:Within DMRI Folder]] ==== Group by Endpoints ====
Line 22: Line 22:
 *Only need FOD folder and possibly DTI folder for the FA optional flag Usage: ./dmri_groupByEndpoints -s <streamlineFile> -i <imageFile> -d <outputDirectory>
Line 24: Line 24:
For DTI, the folder must look like this: The program will take in a streamline file and an image file, cluster the streamlines, and output TRK files to the output directory
Line 26: Line 26:
[[attachment:Within DTI Folder]] ==== Extract Surface Measurements ====
Line 28: Line 28:
''''' Please note that the file names are case sensitive for the surface and volumes ''''' Usage: ./dmri_extractSurfaceMeasurements -i <streamlineFile(s)> -sl <Left Hemisphere Surface> -tl <Left Thickness File> -cl <Left Curvature File> -sr <Right Hemisphere Surface> -tr <Right Thickness File> -cl <Right Curvature File> -o <outputDirectory>
Line 30: Line 30:
== Output == OPTIONAL FLAG: -fa <number of Measures> <Given Name 1> <File 1> ... <Given Name X> <File X>
Line 32: Line 32:
In the terminal, it will output all of the file names that it will be using. The program will take in streamlines, a full brain surface with overlay files, an output directory, and possibly image files, and will output surface metrics, such as thickness and curvature as well as FA at the endpoints of the streamlines
Line 34: Line 34:
Example: === Additional Programs ===
Line 36: Line 36:
[[attachment:Terminal Output]] ==== Change Endpoints ====
Line 38: Line 38:
Also, within the dmri.ac file, there will be a folder named u-shape. Within that folder will contain two folders, clusters and measures. The clusters folder will contain TRK files and be named after the region that the u-shape fibers connect. Usage: ./dmri_changeEndpoints -i <streamlineFile> -sl <Left Hemisphere Surface> -sr <Right Hemisphere Surface> -ol <Left Overlay Filename> -or <Right Overlay Filename> -itk <Itk Volume File> -fs <FS Volume File>
Line 40: Line 40:
[[attachment:U-Shape Folder]] The program will take in two volumes, a streamline, a surface, and the names of the overlay file that will be created, and it will assign the endpoints of the streamline to the global constant assigned at the top of the program (usually a value of 1)
Line 42: Line 42:
[[attachment:Clusters Folder]] ==== Plots ====
Line 44: Line 44:
The measures folder will contain CSV files with the thickness and curvature at the start and end points of a streamline. If the option DTI was used, it will include the mean FA and standard deviation for the 4 files. Usage: python3 ./dmri_plots.py <inputDirectory> <Grouping CSV> <Structure Name>
Line 46: Line 46:
[[attachment:Measures Folder]]

[[attachment:CSV Folder]]
EXPLANATION

U-Shape Bundle Analysis

Note: all of the source code can be found on the "dmri" branch on the Freesurfer Github page. The link can be found here: https://github.com/freesurfer/freesurfer/tree/dmri/anatomicuts

How to Run

Note by running the executable with no parameters will also give information on how to run the program

Main Bundle Analysis Program

Usage: ./bundleAnalysis.sh <Patient File> <OPTION: DTI>

DTI is an option that allows more metrics about the FA values to be outputted based on 4 volumes

If specific files are wanted to be used or files cannot be found, run the programs individually (read below)

Individually

Group by Endpoints

Usage: ./dmri_groupByEndpoints -s <streamlineFile> -i <imageFile> -d <outputDirectory>

The program will take in a streamline file and an image file, cluster the streamlines, and output TRK files to the output directory

Extract Surface Measurements

Usage: ./dmri_extractSurfaceMeasurements -i <streamlineFile(s)> -sl <Left Hemisphere Surface> -tl <Left Thickness File> -cl <Left Curvature File> -sr <Right Hemisphere Surface> -tr <Right Thickness File> -cl <Right Curvature File> -o <outputDirectory>

OPTIONAL FLAG: -fa <number of Measures> <Given Name 1> <File 1> ... <Given Name X> <File X>

The program will take in streamlines, a full brain surface with overlay files, an output directory, and possibly image files, and will output surface metrics, such as thickness and curvature as well as FA at the endpoints of the streamlines

Additional Programs

Change Endpoints

Usage: ./dmri_changeEndpoints -i <streamlineFile> -sl <Left Hemisphere Surface> -sr <Right Hemisphere Surface> -ol <Left Overlay Filename> -or <Right Overlay Filename> -itk <Itk Volume File> -fs <FS Volume File>

The program will take in two volumes, a streamline, a surface, and the names of the overlay file that will be created, and it will assign the endpoints of the streamline to the global constant assigned at the top of the program (usually a value of 1)

Plots

Usage: python3 ./dmri_plots.py <inputDirectory> <Grouping CSV> <Structure Name>

EXPLANATION

U-Shape Bundle Analysis (last edited 2019-08-09 15:18:12 by AlexZsikla)