informatics-isi-edu / deriva-webapps

Deriva-based web applications
Apache License 2.0
2 stars 1 forks source link

Create vitessce app PoC #198

Closed jrchudy closed 2 months ago

jrchudy commented 4 months ago

Following issue #71 in atlas-d2k, we need a vitessce app in deriva-webapps that ingests configuration and data and shows a vitessce app with a chaise navbar.

Update 2:

There also needs to be a dropdown user control (type = dropdown) for replicates. In the current study for the use case, there are only 2 replicates so we don't need to overcomplicate this dropdonwn at the moment.

How do we use react grid layout and user controls in plot app also in the vitessce app?

Update 1:

After some investigation, using vitessce react component is pretty trivial. The difficulty comes in how the data is prepared since vitessce expects data in a few different formats. Overview of data types and file types that vitessce understands: http://vitessce.io/docs/data-types-file-types/

More details on each data type and file type: http://vitessce.io/docs/data-file-types/

Using this page from hubmap: https://portal.hubmapconsortium.org/browse/dataset/f47349f1e0fea69263a8d68c7dac65c5

I was able to write my own configuration that pointed to the secondary_analysis.zarr that hubmap is using for their vitessce app: https://dev.derivacloud.org/~jchudy/deriva-webapps/vitessce/

Note: Something with vitessce visualizations is not supported in chrome. The above hubmap and chaise page links work better in firefox and safari.

jrchudy commented 4 months ago

We discussed that a .zarr might not be ideal for hosting the data since it will be in hatrac and we might no want to create a large directory to represent this data. When I downloaded the dataset to my machine using globus connect, it took 35 minutes to copy the contents which were 795.1 MB with 3,929 items.

An alternative to look into is using an .h5ad file with all the annData in it instead of the .zarr directory. More details at this link: http://vitessce.io/docs/data-file-types/#anndata-as-h5ad

If we use .h5ad and convert it to .zarr in the code, can we then use that converted .zarr for vitessce?

jrchudy commented 4 months ago

Notes about file types:

Other notes: