Skip to main content

Python Cortical mapping software for fMRI data

Project description

pycortex

Build Status Python version License

quickflat demo

Pycortex is a software library that allows you to visualize fMRI or other volumetric neuroimaging data on cortical surfaces.

Installation

[!NOTE] Pycortex cannot be currently installed in Windows, only Linux and macOS are supported.

To install the stable release version of pycortex, do the following:

# First, install some required dependencies (if not already installed)
pip install -U setuptools wheel numpy cython
# Install the latest release of pycortex from pip
pip install -U pycortex

If you wish to install the development version of pycortex, you can install it directly from Github.

To do so, replace the second install line above with the following:

# Install development version of pycortex from github
pip install -U git+https://github.com/gallantlab/pycortex.git  --no-build-isolation

Documentation

Pycortex documentation is available at https://gallantlab.github.io/pycortex.

You can find many examples of pycortex features in the pycortex example gallery.

To build the documentation locally:

# Install required dependencies for the documentation
pip install sphinx_gallery numpydoc
# Move into the docs folder (assuming already in pycortex directory)
cd docs
# Build a local version of the documentation site
make html

After you run the above, you can open docs/_build/html/index.html in a web browser to view the locally built documentation.

Demo

Pycortex is best used with IPython.

If you do not already have IPython, you can install it by running:

pip install ipython

To run the pycortex demo, using IPython, run:

$ ipython
In [1]: import cortex
In [2]: cortex.webshow(cortex.Volume.random("S1", "fullhead"))

Citation

If you use pycortex in published work, please cite the pycortex paper:

Gao JS, Huth AG, Lescroart MD and Gallant JL (2015) Pycortex: an interactive surface visualizer for fMRI. Front. Neuroinform. 9:23. doi: 10.3389/fninf.2015.00023

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

pycortex-1.2.14.tar.gz (64.8 MB view details)

Uploaded Source

File details

Details for the file pycortex-1.2.14.tar.gz.

File metadata

  • Download URL: pycortex-1.2.14.tar.gz
  • Upload date:
  • Size: 64.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycortex-1.2.14.tar.gz
Algorithm Hash digest
SHA256 544a5b05c805dd9651a5303c9c579f20be5be2d4fe3adf79424ad7dad9af0c3d
MD5 29c3f8e2a125168a223b038a79a3f05b
BLAKE2b-256 baca81bbbdb783984f8ef97c73f295c121a732162da886e6ba73cc5e85bbd25c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycortex-1.2.14.tar.gz:

Publisher: publish.yml on gallantlab/pycortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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