Repository navigation
Home
jminock edited this page Jun 14, 2019
·
18 revisions
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.
Recommended tag: v3_1_0_fslv4_1_5
- GLISTR version 3.1.0 with FSL version 4.1.5
Other tag: latest
- GLISTR version 3.1.0 with FSL version 5.0.10
Instructions for use with Docker:
docker pull cbica/glistr:v3_1_0_fslv4_1_5- Create a folder containing all input files and a sub-folder for output called "output".
[minockj@cubic-login3 glistr-files]$ pwd /cbica/home/minockj/glistr-files/ [minockj@cubic-login3 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* - Command:
docker -v /path/to/folder:/mount cbica/glistr:v3_1_0_fslv4_1_5 [FLAGS/OPTIONS for GLISTR] - Use
docker cbica/glistr:v3_1_0_fslv4_1_5 -hfor list of flags and usage - Precede all file/directory arguments with
/mount/except for--atlas_folder - For
--atlas_folderflag, use argument/GLISTR-3.1.0/data/atlas_jakob_with_cere_type
- For example:
docker -v /home/user/glistr-files:/mount cbica/glistr:v3_1_0_fslv4_1_5 --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
- 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
- ReverseDerformationField
- 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:v3_1_0_fslv4_1_5 [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
-vflag 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. - Given the present fslinstaller.py from FSL, 5.0.10 is the most compatible version of FSL available for installation for the GLISTR environment.
- FSL version 4.1.5 exists as downloadable source code, but cannot be built/installed within the GLISTR container due to gcc requirement differences
- FSL version 4.1.5 in the GLISTR image available on Docker Hub was copied from the UPenn CUBIC Cluster into the GLISTR container
- Using Singularity to build an image from the GLISTR image with FSL version 4.1.5 will NOT work, as Singularity strips away any files copied into the GLISTR container (as opposed to being installed in the GLISTR container)
- Singularity can run any image from Docker Hub. Singularity requires an internet connection to do so
- Singularity can build any GLISTR images with FSL version 5.0.10, as this version of FSL was installed (not copied) on the GLISTR container