Skip to content

Commit

Permalink
fixed bug in tl.export_to_anndata() and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
MeyerBender committed Nov 25, 2024
1 parent 7d56fc8 commit d008860
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ pip install spatialproteomics

Check the documentation for further information https://sagar87.github.io/spatialproteomics/.

For a more interactive learning experience, you can also check out [this workshop](https://github.com/MeyerBender/spatialproteomics_workshop) on spatialproteomics (based on `v0.5.7`, some syntax details might have changed since).
For a more interactive learning experience, you can also check out [this workshop](https://github.com/MeyerBender/spatialproteomics_workshop).
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author = "Matthias Meyer-Bender, Harald Vohringer"

# Dynamically set the release version for multi-version builds
release = os.getenv("SPHINX_MULTIVERSION_NAME", "0.6.6")
release = os.getenv("SPHINX_MULTIVERSION_NAME", "0.6.7")

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "spatialproteomics"
packages = [
{ include = "spatialproteomics" },
]
version = "0.6.6"
version = "0.6.7"
description = "spatialproteomics provides tools for the analysis of highly multiplexed immunofluorescence data"
readme = "README.md"
authors = ["Matthias Meyer-Bender", "Harald Vohringer"]
Expand Down
4 changes: 2 additions & 2 deletions spatialproteomics/tl/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def convert_to_anndata(
adata.obs = self._obj.pp.get_layer_as_df(obs_key, idx_to_str=True)

# if we have labels and colors for them, we add them to the anndata object
if Dims.LABELS in self._obj.dims and Layers.PROPERTIES in self._obj:
properties = self._obj.pp.get_layer_as_df(Layers.PROPERTIES)
if Dims.LABELS in self._obj.dims and Layers.LA_PROPERTIES in self._obj:
properties = self._obj.pp.get_layer_as_df(Layers.LA_PROPERTIES)
if Props.COLOR in properties.columns:
# putting it into the anndata object
adata.uns[f"{Features.LABELS}_colors"] = list(properties[Props.COLOR].values)
Expand Down

0 comments on commit d008860

Please sign in to comment.