Skip to content

schmidtfa/ggseg_py

Repository files navigation

Welcome to ggseg_py

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. License Checked with mypy Coverage Status Ruff

ggseg_py is a python adaptation of the famous ggseg R package. ggseg_py facilitates 2D brain plots by making heavy use of geopandas and matplotlib.

In a nutshell: ggseg based .rda files containing multipolygons for different brain regions are used when creating geopandas dataframes. These dataframes can be easily merged with normal pandas dataframes containing the data you want to plot for a given ROI. The package also contains some convenience functions to plot these dataframes using matplotlib.

This package is merely a wrapper around the efforts made by the smart people that developed ggseg and when you use this set of functions to visualize some brains you should also cite them :)

Mowinckel, A. M., & Vidal-Piñeiro, D. (2020). Visualization of brain statistics with R packages ggseg and ggseg3d. Advances in Methods and Practices in Psychological Science, 3(4), 466-483.

If you like ggseg_py please drop a star to support me :)

Also if you are using the atlasses herein in some form of a publication make sure to appropriately cite those.

Currently you can install the ggseg_py package only directly from github. You just need to add the following to your pixi.toml. If ypu want to get started check out the examples folder.

[pypi-dependencies]
ggseg_py = { git = "https://github.com/schmidtfa/ggseg_py.git"}

or use pip

pip install "git+https://github.com/schmidtfa/ggseg_py.git"

About

ggseg like brain plots in python

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages