Skip to main content

Plotting brain regions of interest (ROI) for demonstration purposes in Python

Project description

roipy

Plotting brain regions of interest (ROI) for demonstration purposes in Python

Description

Have you ever wanted to plot a region of the brain to include in a talk or presentation? What about in a lecture? Some might arbitrarily highlight the area of the cortex in which they think a particular region might fall. Others might scour the internet for images. Well...you won't need to do that any more. With roipy, you can plot exact regions of the brain using the Destrieux Atlas.

Installation

This package is hosted on PyPi. You may use pip to install.

pip install roipy

Usage

There are three types of brain plots included in roipy. A "univariate" plot, a "multivariate" plot and a "whole brain multivariate" plot. There are two methods for generating each plot:

  1. Using the domain general class, roipy.plotting.Plot()
  2. Executing each individual plotting method via its own specific function (e.g., roipy.utils.plot_multivariate())

Below is an example of each methods implementation.

# import
from roipy.plotting import Plot
from roipy.utils import plot_multivariate

# Domain general Plot()
P = Plot()
P.plot_multivariate(roi=[1,3,5,34], cmap='viridis')

#Individual function
plot_multivariate(roi=[1,3,5,34], shape='pial', view='lateral', hemi='left', cmap='viridis')

The parameter roi is given a list of integers which correspond to the Destrieux surface atlas.

The utility functions exist for more verbose plotting functionality, like animation with matplotlib.animation.FuncAnimation().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roipy-1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

roipy-1.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file roipy-1.2.tar.gz.

File metadata

  • Download URL: roipy-1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for roipy-1.2.tar.gz
Algorithm Hash digest
SHA256 5c52f91303d901286204be22fe93a1fce14d60b593b7f7d7ece0f9a9bdd365eb
MD5 7a04ab5c8ca14f6f6ee5c680e739ba9c
BLAKE2b-256 d318a596a7e7354b0fdf186e01b567858a3bbef20e61fcd47a117626888a9931

See more details on using hashes here.

File details

Details for the file roipy-1.2-py3-none-any.whl.

File metadata

  • Download URL: roipy-1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for roipy-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 930c2f1fc98dcc2a11fa9e5840d82bed2ea4f8aa74e2f7ce52d34575cf706595
MD5 88ac0fec9dac695ecb4feb2cbabda76c
BLAKE2b-256 949ebabb40229beb0fe3436499423edfb4b0696d6b802de06acdf6ac2323b485

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page