-
Notifications
You must be signed in to change notification settings - Fork 6
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
bt.io.prep(sdata) error: operands could not be broadcast together with shapes (2,) (3,) #161
Comments
Hi @wgmao, thanks for reporting this it's a little tedious but here is the current solution. You are on the right track, we drop the 3rd dimension on the points like so (you may need to set feature_key/instance_key values to your dataset's):
|
Thank you for your prompt response! I will try it out and see if the problem gets resolved. Meanwhile, I tried to bypass this error following the
Then I followed the main guide with
I looked into the |
Thank you for developing this wonderful tool! I am working with a Xenium dataset but came across an error when running
bt.io.prep
following the tutorial. The zarr object was prepared usingspatialdata_io()
. I have attached the log and the object I am working on has the following summary. I think the problem is caused by the 3D coordinates of the transcripts. Is there an easy way to modify the object and only keep the x&y coordinates? Thank you!bento.log
PS: I have tried
sdata_crop.points['transcripts'] = sdata_crop.points['transcripts'].drop('z', axis = 1)
.transcripts
now becomes (2D points) but the error persists.The text was updated successfully, but these errors were encountered: