Skip to main content

brainsurfy

Project description

brainsurfy

Simple surface plots in Python based on ggseg parcellations.

import matplotlib.pyplot as plt

from brainsurfy import fetch_atlas_data, simulate_data, plot_surf

atlas_data = fetch_atlas_data('schaefer7_400')
sim_data = simulate_data(atlas_data)

plot_surf(atlas_data, sim_data, cmap=plt.cm.viridis, cbar=True)

Output:

image

Installation

brainsurfy is meant to be used with Python 3.9 or above, and has been tested on Python 3.9-3.12.

Dependencies

User installation

To install brainsurfy, run this command in your terminal:

pip install brainsurfy

This is the preferred method to install brainsurfy, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

to-do:

  • a lot of things...
  • look into 3d surface plots
  • docs (once there is more stuff)
  • form into package and upload to pypi

======= History

0.0.1 (2024-03-15)

  • First release on PyPI.

0.0.2 (2024-03-15)

  • Fix fetching atlases function.

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

brainsurfy-0.0.2.tar.gz (263.7 kB view details)

Uploaded Source

Built Distribution

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

brainsurfy-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file brainsurfy-0.0.2.tar.gz.

File metadata

  • Download URL: brainsurfy-0.0.2.tar.gz
  • Upload date:
  • Size: 263.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for brainsurfy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e234d6386f9b5a7fb79cf7097b4814704f62012dcde156def727510a584b1823
MD5 24ed706cb1019fa5ee97e62fb12a4221
BLAKE2b-256 5535452336d5da28be1237d9ec0aed64f84c95fa53ec1604fca1b0c9dc5b80d4

See more details on using hashes here.

File details

Details for the file brainsurfy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: brainsurfy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for brainsurfy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2a3e22eaf5e39908309759745de33c65b5d2e90c6befaeeaae7a3d8c12f7c7
MD5 541eed1f6f4771976bd99e741297e5ba
BLAKE2b-256 fcecc82335c243591f15eb60f26cd9be99bfa1256bdd50625cd77ffe6b9e4c24

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