Giter Club home page Giter Club logo

brainhack_western's Introduction

Brainhack_Western

Brainhack 2019 in Western University, Diedrichsen Lab (Ongoing)

This project aims to show cortical surface flatmap using python-based opengl programming. The first version features to allow users to change underlay, add multiple overlays and borders, etc. Eventually, we want to make it as a handy package for lab use to achieve several neuroimaging tasks and involves the 3D volume viewer along with the flatmap as an interactive image viewer, similar to the AtlasViewer.

Installation

Install OpenGL library of python version through standard pip installation:

pip install PyOpenGL PyOpenGL_accelerate

Or you can install the source repository by branching/cloning and running setup.py:

git clone https://github.com/mcfletch/pyopengl.git
cd pyopengl
python setup.py develop
cd accelerate
python setup.py develop

Please follow the instruction in the raw pyopengl repository

Install below dependencies:

pip install nibabel numpy matplotlib glfw

Running the code

the default setting has two overlays (test.func.gii, test2.func.gii), which can be found in onlineAtlas folder.

python main.py

Contrast data

All data stored in onlineAtlas folder
The flatmap topology file is fs_LR.164k.L.flat.surf.gii
The default left hemisphere underlay is fs_LR.164k.LR.sulc.dscalar.nii
The borders information can be loaded via

`fs_LR.164k.L.border-CS.func.gii` 
`fs_LR.164k.L.border-IPS.func.gii` 
`fs_LR.164k.L.border-PoCS.func.gii` 
`fs_LR.164k.L.border-SF.func.gii`

The default loaded overlays are test.func.gii and test2.func.gii.

brainhack_western's People

Contributors

dzhi1993 avatar

Watchers

 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.