How do I store cell boundaries with varying number of points? #1297
Unanswered
Rushil-Chakra
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If I'm not mistaken this is basically not allowed. I don't think AnnData supports ragged arrays (which are what would be needed for variable length per-obs vectors as you are suggesting) and if they do, we do not at the moment. So if/when they do, we will make it a more of a priority. It seems like it's ongoing work for them (PR 647 in their repo). FWIW a 400 point polygon sounds very high - OME metadata bitmasks are very well supported in Vitessce. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a zarr dataset of 100k cell boundaries that range in the number of points per polygon, going up to ~400 for a single cell. How does Vitessce expect this data to be stored? I tried creating an ndarray with shape (n_cells, max_points, 2) in the obsm and padding the smaller shapes with None, but this raised an error:
Buffer has NaN of dtype |O
.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions