Code Monkey home page Code Monkey logo

label-aal's Introduction

label-AAL

Find AAL brain atlas region name, from World(NIfTI)/MNI coordinate input

This procedure is embedded in brain image programs(Vinci, MRIcron), but it's hard to find codes for those who want to develop their own program.

In the meantime, yunshiuan/label4MRI was the best source that I utilized, but it was in R code. I ported it to python for making GUI program.

I also added World(NIfTI) coordinate input to MNI coordinate transformation (by using nilearn.image.coord_transform function), while yunshiuan/label4MRI only accepts MNI coordinate input.

Environment

python 3.8.1

pip 19.3.1

Prerequisites

Try following commands (there could be more)

pip install numpy
pip install numbers

How to run

python AAL_check_program.py

Windows Standalone GUI Program

Program Example

Input : World (NifT) Coordinates Output : AAL brain region name

Windows standalone (.exe) program can be created from the .py code.

Try following commands

pyinstaller --onefile --noconsole AAL_check_program.py

If numpy error happens, add following path to Windows PATH variable

C:\Users\rccd\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\numpy\.libs

In order to execute standalone program on Windows, following items in dist folder should be in the same folder

  1. data folder
  2. log folder
  3. AAL_check_program.exe

label-aal's People

Contributors

yunshiuan avatar bkjung avatar losses avatar chichuanchen avatar

Stargazers

 avatar

Watchers

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