Skip to content

davhunt/app-track-between-multiple-regions

 
 

Repository files navigation

Abcdspec-compliant Run on Brainlife.io

This app will perform ensemble tracking between 2 or more cortical regions of interest (ROIs) from atlas parcellation. First, the ROIs are registered to diffusion space using Freesurfer's mri_label2vol, and a white matter mask is generated in diffusion space, by running the create_wm_mask script. Then, tracking will be performed using mrtrix/0.2.12 by running the trackROI2ROI script. Finally, a classification structure will be generated using Vistasoft's bsc_mergeFGandClass and bsc_makeFGsFromClassification functions by running the classificationGenerator script.

Authors

Contributors

Funding

NSF-BCS-1734853 NSF-BCS-1636893

Running the App

On Brainlife.io

You can submit this App online at https://doi.org/10.25663/bl.app.34 via the "Execute" tab.

Running Locally (on your machine)

  1. git clone this repo.
  2. Inside the cloned directory, create config.json with something like the following content with paths to your input files.
{
        "parcellation": "./input/parc/",
        "dtiinit": "./input/dtiinit/",
        "fsurfer": "./input/freesurfer/",
        "roiPair": "45,54",      
        "num_fibers": 500000,
        "max_num": 1000000,
        "stepsize": 0.2,
        "minlength": 10,
        "maxlength": 200,
        "num_repetitions": 1
}

Sample Datasets

You can download sample datasets from Brainlife using Brainlife CLI.

npm install -g brainlife
bl login
mkdir input
bl dataset download 5b96bc8b059cf900271924f4 && mv 5b96bc8b059cf900271924f4 input/parcellation
bl dataset download 5b96bc8d059cf900271924f5 && mv 5b96bc8d059cf900271924f5 input/dtiinit
bl dataset download 5b96bc8d059cf900271924f5 && mv 5b96bc8d059cf900271924f5 input/freesurfer

  1. Launch the App by executing main
./main

Output

The main outputs of this App is a 'track.tck' file, a folder called 'tracts' containing .json files for each tract, an 'output.mat' containing the classification structure, and a text file called 'output_fibercounts.txt' which contains information regarding the number of streamlines in each tract.

Product.json

The secondary output of this app is product.json. This file allows web interfaces, DB and API calls on the results of the processing.

Dependencies

This App requires the following libraries when run locally.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 46.5%
  • MATLAB 40.8%
  • Python 10.2%
  • JavaScript 2.5%