GithubHelp home page GithubHelp logo

ltirrell / pl-fs6-recon-all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pwighton/pl-fs6-recon-all

0.0 2.0 0.0 16 KB

Chris app plugin for FreeSurfer 6.0 recon-all

License: MIT License

Shell 18.08% Python 81.92%

pl-fs6-recon-all's Introduction

pl-fs6-recon-all

Abstract

ChRIS plugin to run the FreeSurfer 6.0 recon-all stream.

Building the container

docker build -t pwighton/pl-fs6-recon-all .

Running

Assign an "input" directory to /subjects and an output directory to /outgoing

Also required is the environment variable FS_KEY that is a base64 encoding of the FreeSurfer license file. You can apply for a license file here. Once you have the file, run the following command to generate the FS_KEY string

base64 -w999 ~/Downloads/license.txt

The current string for the ChRIS license file is: cnVkb2xwaC5ubXJAZ21haWwuY29tCjM1Mzc3CiAqQ0liU0R6Z01RQlFRCiBGU0JBUC84aHBWOU0yCg==. Inside of chris, this is set by default

Examples

This will run the entire stream (several hours):

docker run -it --rm \
  -v /tmp/sub/in/:/subjects \
  -v /tmp/sub/out:/outgoing \
  pwighton/pl-fs6-recon-all \
    fs6_recon_all.py \
      --subject bert 
      /incomming /outgoing

This will only do skull stripping. See here for more info on the stream

	docker run -it --rm \
	  -v /tmp/sub/in/:/subjects \
	  -v /tmp/sub/out:/outgoing \
	  pwighton/pl-fs6-recon-all \
		fs6_recon_all.py \
		  --subject bert \
		  --ar1 \
		  /incomming /outgoing

To convert an .mgz outputs to .nii.gz

docker run -it --rm \
  -e FS_KEY='cnVkb2xwaC5ubXJAZ21haWwuY29tCjM1Mzc3CiAqQ0liU0R6Z01RQlFRCiBGU0JBUC84aHBWOU0yCg==' \
  -v /tmp/sub/out:/tmp/sub/out \
  corticometrics/fs6-base \
    mri_convert /tmp/sub/out/subjects/bert/mri/brainmask.mgz \
                /tmp/sub/out/subjects/bert/mri/brainmask.nii.gz

This will convert brainmask.mgz to brainmask.nii.gz

pl-fs6-recon-all's People

Contributors

pwighton avatar

Watchers

 avatar  avatar

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.