Coder Social home page Coder Social logo

brain-life / life-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from francopestilli/life

0.0 2.0 2.0 12.04 MB

MatLab routines for evaluating the quality of white-matter connectomes generated using diffusion-weighted imaging.

MATLAB 6.26% Shell 12.87% HTML 25.23% C 32.64% C++ 23.00%

life-1's Introduction

Abcdspec-compliant

brainlife/LiFE

This service Executes Linear Fascicle Evaluation (LiFE) - statistical evaluation for brain fasicles.

Running

Docker

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.

On Command Line

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.

Output

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..

Shared Library

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

life-1's People

Contributors

arokem avatar francopestilli avatar soichih avatar wandell avatar

Watchers

 avatar  avatar

Forkers

bcmcpher soichih

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.