-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
Hi, nice work of spatialdata to facilitate the integrtive analysis of multi-modal spatial omics.
I'm checking out the tutorial provided in the documentation and encountered an Error below:
Tutorial: Use landmark annotations to align multiple -omics layers, https://spatialdata.scverse.org/en/latest/tutorials/notebooks/notebooks/examples/alignment_using_landmarks.html#adding-landmark-annotations
After read in the visium and xenium data, I run the Interactive function to visualize the data:
Interactive([visium_sdata, xenium_sdata], points=False, shapes=False)
- Error 1 occurs :
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[12], line 1
----> 1 Interactive([visium_sdata, xenium_sdata], points=False, shapes=False)
TypeError: Interactive.__init__() got an unexpected keyword argument 'points'
- Error 2 occurs:
Interactive([visium_sdata, xenium_sdata])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 Interactive([visium_sdata, xenium_sdata]) # , points=False, shapes=False
File ~/miniconda3/envs/SpatialData/lib/python3.10/site-packages/napari_spatialdata/_interactive.py:220, in Interactive.__init__(self, sdata)
218 self._viewer = napari.Viewer()
219 self._sdata = sdata
--> 220 self._sdata_widget = SdataWidget(self._viewer, sdata)
221 self._list_widget = self._viewer.window.add_dock_widget(
222 self._sdata_widget, name="SpatialData", area="left", menu=self._viewer.window.window_menu
223 )
File ~/miniconda3/envs/SpatialData/lib/python3.10/site-packages/napari_spatialdata/_interactive.py:56, in SdataWidget.__init__(self, viewer, sdata)
52 self._viewer = viewer
54 self.setLayout(QVBoxLayout())
---> 56 self.coordinate_system_widget = CoordinateSystemWidget(self._sdata)
57 self.elements_widget = ElementWidget(self._sdata)
59 self.layout().addWidget(QLabel("Coordinate System:"))
File ~/miniconda3/envs/SpatialData/lib/python3.10/site-packages/napari_spatialdata/_interactive.py:42, in CoordinateSystemWidget.__init__(self, sdata)
38 super().__init__()
40 self._sdata = sdata
---> 42 self.addItems(self._sdata.coordinate_systems)
AttributeError: 'list' object has no attribute 'coordinate_systems'
More information:
(SpatialData) ➜ ~ pip list | grep spatialdata
napari-spatialdata 0.2.4
spatialdata 0.0.10
spatialdata-io 0.0.4
spatialdata-plot 0.0.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels