vitessce-python icon indicating copy to clipboard operation
vitessce-python copied to clipboard

Support Starfish data objects

Open keller-mark opened this issue 4 years ago • 4 comments

https://spacetx-starfish.readthedocs.io/en/latest/index.html

Example datasets: https://spacetx-starfish.readthedocs.io/en/latest/api/datasets/index.html

keller-mark avatar Dec 31 '20 19:12 keller-mark

I started this a while ago but the SpaceTx/Starfish objects are not as nice as AnnData. We need this anyway for HuBMAP

ilan-gold avatar Dec 31 '20 19:12 ilan-gold

Yeah the proprietary image data structures look like they may be tricky to work with. It looks like there are some conversion functions, (maybe you have already seen them):

  • https://spacetx-starfish.readthedocs.io/en/latest/api/data_structures/image_stack.html#starfish.core.imagestack.imagestack.ImageStack.to_multipage_tiff
  • https://spacetx-starfish.readthedocs.io/en/latest/api/data_structures/expression_matrix.html#starfish.core.expression_matrix.expression_matrix.ExpressionMatrix.save_anndata

keller-mark avatar Dec 31 '20 20:12 keller-mark

Yes I had seen that - I think my biggest hurdle was the fact that there isn't one object always returned. There are many possible "end results" so I sort of stopped, faced with the options, at the point of writing a wrapper since it was not clear to me what should be wrapped - anything returned or certain objects? And then there are non-returned results like the tiff which is an input but you want to visualize it. I imagine I was overthinking it but I became overwhelmed as happens sometimes....

ilan-gold avatar Dec 31 '20 20:12 ilan-gold

Ah I see. Maybe when it is ambiguous about what to visualize, special parameters (like we have for AnnDataWrapper https://github.com/vitessce/vitessce-python/blob/44bb572/vitessce/wrappers.py#L319) could help?

keller-mark avatar Dec 31 '20 20:12 keller-mark