yunshiuan / label4MRI

Label the brain MNI coordinate by AAL/BA system
GNU General Public License v3.0
55 stars 19 forks source link

Method for identifying nearest region #10

Closed letitiayhho closed 3 years ago

letitiayhho commented 3 years ago

Hi can I ask how exactly you're computing nearest region? Are you doing it based on distance to the centroid or closest labeled coordinate within the volume of an region?

yunshiuan commented 3 years ago

It's the later one.

letitiayhho commented 3 years ago

Thanks for responding. Any idea how I might make modifications to output nearest k regions or regions within a certain radius of a given point? I tried using neuroim to generate coordinates in a surrounding sphere, but I keep running into bugs, potentially involving an unsupported dependency rflann. If you have any other ideas I'd really appreciate it.

yunshiuan commented 3 years ago

You can use the function show_cluster_composition() included in the package. For tutorial, see https://github.com/yunshiuan/label4MRI#53-show-cluster-composition