scverse / spatialdata-plot

Static plotting for spatialdata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpatialData banner

spatialdata-plot: rich static plotting from SpatialData objects

Tests Documentation Codecov

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 format, please refer to the documentation. In particular, the

For usage examples, please refer to the "Visualizations" section of spatialdata.

Installation

You need to have Python 3.8 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:

  1. 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

If you use spatialdata in your work, please cite the spatialdata publication as follows:

SpatialData: an open and universal data framework for spatial omics

Luca Marconato, Giovanni Palla, Kevin A. Yamauchi, Isaac Virshup, Elyas Heidari, Tim Treis, Marcella Toth, Rahul Shrestha, Harald Vöhringer, Wolfgang Huber, Moritz Gerstung, Josh Moore, Fabian J. Theis, Oliver Stegle

bioRxiv 2023.05.05.539647; doi: https://doi.org/10.1101/2023.05.05.539647

About

Static plotting for spatialdata

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%