Coder Social home page Coder Social logo

kwyk2nidm's Introduction

kwyk2nidm

NIDMification of kwyk output

This project uses kwyk (https://github.com/neuronets/kwyk). Paper, code, and model corresponding to preprint, which is now published.

Cite: McClure P, Rho N, Lee JA, Kaczmarzyk JR, Zheng CY, Ghosh SS, Nielson DM, Thomas AG, Bandettini P and Pereira F (2019) Knowing What You Know in Brain Segmentation Using Bayesian Deep Neural Networks. Front. Neuroinform. 13:67. doi:10.3389/fninf.2019.00067

Steps

Run kwyk

Interpret kwyk output for regional volumes

We include a BASH script, 'kwykput.sh' that takes a resulting output from kwyk, and used the FSL fslstats utility to determine the volume for each of the regions. This script uses the kwyk_region_list.txt file for the region lables (derived from FreeSurfer. It generates a text file (example provided test_out.txt) of the form:

kwyk_index label number_voxels vol_inmm3
1 Cerebral-White-Matter 496396 496396.000000 
2 Ventricular-System 11025 11025.000000 
3 Cerebellum-White-Matter 32515 32515.000000 
4 Cerebellum-Cortex 144992 144992.000000 
5 Thalamus-Proper 18118 18118.000000 
6 Caudate 10851 10851.000000 
etc...

Convert the volume result file into NIDM

The steps for this include generating a kwykmap.json file that described the content of out reults file (kwykmap.json).

  1. Install kwyk2nidm into your Python 3 environment
pip install https://github.com/ReproNim/kwyk2nidm/archive/master.zip

kwyk2nidm -f kwyk_stats_file
  1. Clone the repo and create a Docker container
git clone https://github.com/ReproNim/kwyk2nidm.git
cd kwyk2nidm
docker build -t kwyk2nidm:latest .
docker run -v $(pwd):/data kwyk2nidm -f /data/kwyk_stats_file

To generate all the NIDM KWYK data elements add -g to the commands above. This will generate a

Great! I have a NIDM kwyk result. Now What???

Query it!

Merge it with other NIDM, and query it!

kwyk2nidm's People

Contributors

dnkennedy avatar satra avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.