This service Executes Linear Fascicle Evaluation (LiFE) - statistical evaluation for brain fasicles.
First, create output directory and store your config.json contaning path to your input files (relative to /input that you are going to specify below)
cat > config.json << CONF
{
"anatomy": { "t1": "/input/sub-FP/anatomy/t1.nii.gz" },
"trac": { "ptck": "/input/sub-FP/tractography/run01_fliprot_aligned_trilin_csd_lmax10_wm_SD_PROB-NUM01-500000.tck" },
"diff": {
"dwi": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.nii.gz",
"bvecs": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.bvecs",
"bvals": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.bvals"
},
"life_discretization": 360,
"num_iterations": 100
}
CONF
Then, launch brainlife/life
docker run --rm -it \
-v /mnt/v1/testdata:/input \
-v `pwd`:/output \
brainlife/life
- Replace
/mnt/v1/testdata
to where you have your input files. - Replace
pwd
to point to your output directory (if you don't want them to go to your current working directory). If you change this, be sure to move your config.json there also. This container starts up with current directory set to /output.
Currently, this service can be launched on IU Karst cluster.
First, create your config.json
cat > config.json << CONF
{
"anatomy": { "t1": "/input/sub-FP/anatomy/t1.nii.gz" },
"trac": { "ptck": "/input/sub-FP/tractography/run01_fliprot_aligned_trilin_csd_lmax10_wm_SD_PROB-NUM01-500000.tck" },
"diff": {
"dwi": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.nii.gz",
"bvecs": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.bvecs",
"bvals": "/input/sub-FP/dwi/run01_fliprot_aligned_trilin.bvals"
},
"life_discretization": 360,
"num_iterations": 100
}
CONF
Then, execute start.sh
which will submit a job to PBS queue.
The main output will be a file called output_fe.mat
. This file contains following object.
fe =
name: 'temp'
type: 'faseval'
life: [1x1 struct]
fg: [1x1 struct]
roi: [1x1 struct]
path: [1x1 struct]
rep: []
output_fg.pdb
contains all fasicles with >0 weights withtin fg object (fibers)
TODO.. explain this a bit more..
Content under /msa-shared can be used to run LiFE as part of another application. It is created by compiling LiFE using libraryCompiler
https://www.mathworks.com/help/compiler_sdk/gs/create-a-cc-application-with-matlab-code.html