Skip to content
Sarthak Pati edited this page Mar 25, 2020 · 18 revisions

Welcome to the GLISTR wiki!

Segmentation Algorithm. DEPRECATED

Can be accessed through Docker Hub

GLISTR only exists as a Docker image, Docker or Singularity must be installed in order to run.

As input, GLISTR accepts 4 NIfTI images that are MR modalities:

  • T1 image - describes the subject's native T1-weighted MRI volume
  • T2 image - describes the subject's native T2-weighted MRI volume
  • T1CE image - describes the subject's post-contrast (contrast-enhanced) T1-weighted MRI volume
  • FLAIR image - describes the subject's T2 Fluid-attenuated inversion recovery (FLAIR) MRI volume

These images should have their names listed in a file called: features.lst

In addition, GLISTR requires a tumor seedpoint file for argument -si|--seed_info and a tissue seedpoint file for argument -pi|--point_info

We do not have sample data to provide, users are expected to provide their own.

Recommended tag: latest

  • GLISTR version 3.1.0 with FSL version 4.1.5

Instructions for use with Docker:

  1. docker pull cbica/glistr:latest
  2. Create a folder containing all input files and a sub-folder for output called "output".
       $ pwd
       /path/to/folder/glistr-files/
       $ ls
       features.lst               output/
       FLAIR.nii.gz*              T1.nii.gz*
       init_point_glistr_10a.txt  T1CE.nii.gz*
       init_seed_glistr.txt       T2.nii.gz*
    
  3. Command: docker run -v /path/to/folder:/mount cbica/glistr:latest [FLAGS/OPTIONS for GLISTR]
  4. Use docker run cbica/glistr:latest -h for list of flags and usage
  5. Precede all file/directory arguments with /mount/ except for --atlas_folder
  6. For --atlas_folder flag, use argument /GLISTR-3.1.0/data/atlas_jakob_with_cere_type
  • For example: docker run -v /home/user/glistr-files:/mount cbica/glistr:latest --featureslist /mount/features.lst --seed_info /mount/init_seed_glistr.txt --point_info /mount/init_point_glistr_10a.txt --atlas_folder /GLISTR-3.1.0/data/atlas_jakob_with_cere_type --num_omp_threads 3 --num_itk_threads 3 --num_hop_threads 1 --outputdir /mount/output
  1. Check the output files produced in the output sub-folder mentioned in Step 2

The GLISTR image is set to use the "GLISTR" executable of GLISTR-3.1.0

Other executables include:

  • ConcatenateFields
  • EvaluateQ
  • NormalizeImage
  • ResampleDeformationField
  • ResampleImage
  • ReverseDeformationField
  • WarpImage
  • WarpImageNN

To use another executable, override the command with the --entrypoint flag, here is the template for the command: docker run -v /path/to/folder:/mount --entrypoint /GLISTR-3.1.0/bin/install/bin/[EXECUTABLE] cbica/glistr:latest [FLAGS/OPTIONS for executable]

To use with Singularity or to use on CUBIC Cluster, see CUBIC usage

Notes:

  • Docker images do not interact with files outside the container, which is why the volume, -v, flag exists. This flag binds a folder and all of its contents to the Docker container for the run. The path before the ":" points to the directory containing all input files and a sub-directory for output. The path following the ":" points to a directory created within the container such that the image can interact with.
  • Docker-Compose (Docker Toolkit) is known to have issues with using volumes. Not all files may be binded to the container
  • Singularity can run any image from Docker Hub. Singularity requires an internet connection to do so

Clone this wiki locally