Skip to content

Python code to find anatomical brain regions from MNI coordinates

Notifications You must be signed in to change notification settings

aaolaveh/anat-from-MNI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

anat-from-MNI

This is a Python code to find the anatomical brain region of a MNI coordinate.

The original code is a matlab one from Xu Cui found in his website

The TDdatabase.mat file is also found in Xu Cui's website

How to use it?

Let's find the structure of two points in MNI coordinates (58,-29,19) and (30,9,12):

     mni=[[58,-29,19],[30,9,12]]
     [one_line,table]=find_structure(mni)

We see the results

    >>> one_line[0]
    ' // Right Cerebrum // Parietal Lobe // Postcentral Gyrus // Gray Matter // brodmann area 40 // Temporal_Sup_R (aal)'
    >>> one_line[1]
    ' // Right Cerebrum // Sub-lobar // Extra-Nuclear // White Matter // undefined // undefined'
    >>> table
    [['Right Cerebrum',
  'Parietal Lobe',
  'Postcentral Gyrus',
  'Gray Matter',
  'brodmann area 40',
  'Temporal_Sup_R (aal)'],
 ['Right Cerebrum',
  'Sub-lobar',
  'Extra-Nuclear',
  'White Matter',
  'undefined',
  'undefined']]

About

Python code to find anatomical brain regions from MNI coordinates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages