Git Product home page Git Product logo

pl-nirs-demo-app's Introduction

pl-nirs-demo-app

An app to demo nirs mcx simulations.

Run

Requirements

  • a compatible nvidia gpu
    • compatible meaning, at least compute-capability 3.0, see list of here
    • nvidia driver installed
  • docker
  • nvidia-docker
  • to configure the simulations, experience with mcx, Monte Carlo eXtreme, is needed.
  • understanding of chrisapp would be useful, but not necessary

Arguments

  1. incoming: input directory for files.
  2. outgoing: output directory for files.
  3. head: NIfTI file containing head to simulate.
  4. mcx_config: json file containing options for how to run mcx, and vectors for srcpos, srcdir, detpos, and detdir.

Example json for mcx_config

{
    "mcx" : {
        "gpuid": "1",
        "prop": [
            [0, 0, 1, 1],
            [0.014600,  8.28, 0.9, 1.37],
            [0.019500, 11.11, 0.9, 1.37]
        ]
    },
    "srcpos": [53, 100, 50],
    "srcdir": [0.9063077870366499, 0, 0.42261826174069944],
    "detpos": [47, 100,  62.5],
    "detdir": [0.9063077870366499, 0, 0.42261826174069944]
}

How to run example

Using the example config and head, here is an example of how to run this plugin using nvidia-docker.

mkdir -p out && nvidia-docker run -v example:/incoming -v out:/outgoing   \
             jdtatz/pl-nirs-demo-app nirs_demo_app.py /incoming /outgoing \
             --head=example_head.nii.gz --mcx_config=example_config.json

pl-nirs-demo-app's People

Watchers

Julia Tatz avatar  avatar

Forkers

fnndsc

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.