Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError while writing zarr file with xenium.write() #919

Closed
aasingh2 opened this issue Nov 27, 2024 · 1 comment
Closed

AttributeError while writing zarr file with xenium.write() #919

aasingh2 opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@aasingh2
Copy link

Hi,

I am trying to read some Xenium data using the spatialdata_io library, following the steps in the tutorial here. However, I encountered an issue at the step where I am supposed to write the Xenium data as Zarr files. The error message suggests that there is no function called xenium.write()
Here is the line that throws the error:

xenium.write(zarr_path)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[4], line 1
----> 1 xenium.write(zarr_path)

AttributeError: 'function' object has no attribute 'write'

I have already executed the from spatialdata_io import xenium step. Could you please help me understand why this is happening or if I need to call a different function?

Thanks !

@LLehner
Copy link
Member

LLehner commented Nov 27, 2024

Hi, @aasingh2 thanks for using squidpy in combination with spatialdata!

The is due to a typo in the notebook, you can see the fixed version here. It should be sdata.write(zarr_path)

Seems like the docs haven't been updated yet.

@LLehner LLehner assigned LLehner and unassigned giovp Nov 27, 2024
@LLehner LLehner closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants