spatialdata-plot0.2.8
Published
Static plotting for spatial data.
pip install spatialdata-plot
Package Downloads
Authors
Project URLs
Requires Python
>=3.10
Dependencies
- matplotlib
- matplotlib-scalebar
- scanpy
- scikit-learn
- spatialdata
>=0.2.6
- bump2version
; extra == "dev"
- ipython
>=8.6.0; extra == "docs"
- myst-nb
; extra == "docs"
- sphinx-autodoc-typehints
; extra == "docs"
- sphinx-book-theme
>=1.0.0; extra == "docs"
- sphinx-copybutton
; extra == "docs"
- sphinx-design
; extra == "docs"
- sphinx-rtd-theme
; extra == "docs"
- sphinx
>=4.5; extra == "docs"
- sphinxcontrib-bibtex
>=1.0.0; extra == "docs"
- spatialdata
>=0.1.0-pre0; extra == "pre"
- pooch
; extra == "test"
- pytest
; extra == "test"
- pytest-cov
; extra == "test"
spatialdata-plot: rich static plotting from SpatialData objects
The spatialdata-plot
package extends spatialdata
with a declarative plotting API that enables to quickly visualize spatialdata
objects and their respective elements (i.e. images
, labels
, points
and shapes
).
SpatialData’s plotting capabilities allow to quickly visualise all contained modalities. The user can specify which elements should be rendered (images, labels, points, shapes) and specify certain parameters for each layer, such as for example the intent to color shapes by a gene’s expression profile or which color to use for which image channel. When the plot is then eventually displayed, all transformations, alignments and coordinate systems are internally processed to form the final visualisation. In concordance with the general SpatialData philosophy, all modalities of the major spatial technologies are supported out of the box.
Getting started
For more information on the spatialdata-plot
library, please refer to the documentation. In particular, the
- API documentation.
- Example notebooks (section "Visiualizations")
Installation
You need to have Python 3.10 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.
There are several alternative options to install spatialdata-plot:
- Install the latest development version:
pip install git+https://github.com/scverse/spatialdata-plot.git@main
Contact
For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.
Citation
Marconato, L., Palla, G., Yamauchi, K.A. et al. SpatialData: an open and universal data framework for spatial omics. Nat Methods (2024). https://doi.org/10.1038/s41592-024-02212-x