You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @LucaMarconato ! A few days ago, following the instructions in the Use landmark annotations to align multiple -omics layers section, I successfully aligned the layers using data from visium and xenium. However, today I encountered an error when running the add_shapes() function following the same code.
In these past few days, I encountered another error while using the polygon_query() function and resolved it based on the suggestions provided in #474. During this process, I updated spatialdata using pip install git+https://github.com/scverse/spatialdata. I'm not sure if this operation caused the error mentioned above.
The text was updated successfully, but these errors were encountered:
GuoshengMa
changed the title
Error in add_shapes
Error in add_shapes() function
Mar 29, 2024
Hi @GuoshengMa, thanks for reaching out. The error above is expected and of easy fix. In the latest release we refactored the IO system to separate the moment in which new elements are added in memory and the moment when they are saved to disk.
To add the new element in-memory you can now simply do sdata['labels_name'] = labels. If you also need to save it to disk you have two options:
save the whole object with sdata.write('data.zarr')
save only the new labels element. This functionality is not supported in main yet but is already implemented and working in this PR: reimplemented incremental io #501
Last comment, I see you are using Windows and Xenium data; some users reported problems with Xenium and Steinbock data (and if the element name contain the character /), please check out also scverse/spatialdata-io#129 if you have any problems of that kind.
Hi @LucaMarconato ! A few days ago, following the instructions in the Use landmark annotations to align multiple -omics layers section, I successfully aligned the layers using data from visium and xenium. However, today I encountered an error when running the
add_shapes()
function following the same code.Here is my code:
And here is the error:
In these past few days, I encountered another error while using the
polygon_query()
function and resolved it based on the suggestions provided in #474. During this process, I updated spatialdata usingpip install git+https://github.com/scverse/spatialdata
. I'm not sure if this operation caused the error mentioned above.The text was updated successfully, but these errors were encountered: