Skip to main content

A package for automated plotting of neuroimaging maps using Connectome Workbench.

Project description

README File for wbplot

Automated plotting of neuroimaging maps from Python using Connectome Workbench.

This package is intended for users who want to generate images which illustrate scalar data on a brain surface, from within their Python scripts.

Installation


Step 1. Make sure you have Connectome Workbench installed.

Step 2. Install wbplot and dependencies.

  • Clone the repository and install manually: git clone https://github.com/jbburt/wbplot.git
  • Or just use pip: pip install wbplot

Usage


Assuming x is a NumPy array containing scalar values mapped onto each of the 360 parcels in the Human Connectome Project's MMP1.0 parcellation:

from wbplot import pscalar
pscalar("/path/to/image.png", x)

Assuming y is a NumPy array containing dense scalar values mapped onto the 59412 surface vertices in a standard bilateral 32k surface mesh:

from wbplot import dscalar
dscalar("/path/to/image.png", y)

Notes


  • wbplot currently only supports cortical data. Parcellated data must also be in the HCP MMP1.0 parcellation. Dense data must be registered to a standard 32k surface mesh.
  • Down the line I'd be open to adding subcortical support and other functionality if anyone ever actually uses this package.
  • More detailed explanations of the functionality can be found in the scripts in the examples directory.

Change Log


  • 1.0 Initial release.
  • 1.0.1 Small error in README.

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

wbplot-1.0.1.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wbplot-1.0.1-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file wbplot-1.0.1.tar.gz.

File metadata

  • Download URL: wbplot-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.6

File hashes

Hashes for wbplot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fe3615d35076bd67e7a6db2884f300389bf3525727818aa9001f87e7efa7fb83
MD5 eccdc623f1f79a2f0e8cde8cafff958b
BLAKE2b-256 1f69de08bcbaa6d190e32074e5cfb594bdfabf62d98f14883474109a624469a6

See more details on using hashes here.

File details

Details for the file wbplot-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: wbplot-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.6

File hashes

Hashes for wbplot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d78087e92ae2c5107c86ca137693e1604ea6ea924cfa146a19bf5f005cce757f
MD5 69c73490ca1ef2284206907c40d5f38b
BLAKE2b-256 e52451ed9cf36225fc17a196707ca1be2ae2df7109668d0cae55abb30efcee12

See more details on using hashes here.

Supported by

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