Skip to content

This service creates 6 figures of each specified white matter tract (any wmc structure): axial, axial_flipped, sagittal_left, sagittal_right, coronal, and coronal_flipped. Please choose the t1 image slices you would like displayed. The default slices work well for the HCP t1 images if they have not been re-ACPC aligned. If you have ACPC aligned …

Notifications You must be signed in to change notification settings

brainlife/app-wmc_figures

 
 

Repository files navigation

Abcdspec-compliant Run on Brainlife.io

app-wmc_figures

This service creates 6 figures of each specified white matter tract (any wmc structure): axial, axial_flipped, sagittal_left, sagittal_right, coronal, and coronal_flipped. It also creates 6 figures containing all the tracts.

Authors

Project director

Funding Acknowledgement

brainlife.io is publicly funded and for the sustainability of the project it is helpful to Acknowledge the use of the platform. We kindly ask that you acknowledge the funding below in your code and publications. Copy and past the following lines into your repository when using this code.

NSF-BCS-1734853 NSF-BCS-1636893 NSF-ACI-1916518 NSF-IIS-1912270 NIH-NIBIB-R01EB029272

Citations

We ask that you cite the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.

  1. Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019). https://doi.org/10.1038/s41597-019-0073-y

Running the App

On Brainlife.io

You can submit this App online at https://brainlife.io/app/5967b45e81d7ef0021538e89 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.
{
    "coronal": 85,
    "sagittal": 74,
    "axial": 48,
    "wmc": "testdata/track/tracts",
    "t1": "testdata/anat/t1.nii.gz",
    "img_max": 2,
    "img_min": -0.5
}

If you have singularity installed on your local machine:

  1. Launch the App by executing main.

Inputs

You would need a White Matter Classification (WMC) structure and a T1w image to select the anatomical slices from. The default slices work well for the HCP t1 images if they have not been re-ACPC aligned. If you have ACPC aligned your t1 images using the ACPC alignment app on brainlife, the following values are a good starting point: coronal = 105, sagittal = 89, axial = 65. The img_min and img_max values refer to the value range displayed for the t1 image. The value range is calculated as follow (mean + img_min * std, mean + img_max * std). The default values are a good starting place, adjust them if your t1 is too dark or too light.
If you only want images of a set of specified tracts (the default is to create the images of all the wmc tracts), you can specify their tract codes. For tract codes derived from common segmentations available on brainlife, please refer to the following links:

Output

The output of this app will be a folder with images of the specified wmc tracts.

Sample Datasets

If you don't have your own input file, you can download sample datasets from brainlife, or you can use Brainlife CLI.

Dependencies

This App only requires singularity to run. If you don't have singularity, you will need to install following dependencies.

RUN apt-get update && apt-get install -y python-pip
RUN apt-get install -y xvfb x11-xkb-utils
RUN apt-get install -y xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
RUN apt-get install -y python-matplotlib

RUN pip install numpy cython scipy h5py nibabel nipype
RUN pip install cvxpy scikit-learn
RUN pip install dipy joblib pandas nibabel

RUN pip install xvfbwrapper
RUN apt-get install -y python-vtk

MIT Copyright (c) brainlife.io

This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. 1342962. Any opinion, findings, and conclusions or recommendations expressed in this material are those of the authors(s) and do not necessarily reflect the views of the National Science Foundation.

About

This service creates 6 figures of each specified white matter tract (any wmc structure): axial, axial_flipped, sagittal_left, sagittal_right, coronal, and coronal_flipped. Please choose the t1 image slices you would like displayed. The default slices work well for the HCP t1 images if they have not been re-ACPC aligned. If you have ACPC aligned …

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Shell 0.9%