-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Color circles and polygons with annotations (#73)
* added support for circles * added affine transformations * minor fix * cleanup * added color circles by obs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added polygons * pre-commit fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * cleanup * cleanup --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
51eccdf
commit 306e9a2
Showing
4 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# In this script, we are reading the Visium dataset into a SpatialData object and visualising | ||
# it with the Interactive class from napari_spatialdata. | ||
|
||
# The dataset can be downloaded from https://spatialdata.scverse.org/en/latest/tutorials/notebooks/datasets/README.html | ||
|
||
from napari_spatialdata import Interactive | ||
from spatialdata import SpatialData | ||
|
||
if __name__ == "__main__": | ||
sdata = SpatialData.read("../data/visium/data.zarr") # Change this path! | ||
i = Interactive(sdata) | ||
i.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters