Replies: 1 comment 2 replies
-
Have you tried explicitly using FSStore? It seems to work via the HTTP URL but throws an error about S3 credentials for the Another note is that passing a zarr store via import zarr
from vitessce import (
VitessceWidget,
VitessceConfig,
Component as cm,
CoordinationType as ct,
AnnDataWrapper,
)
s3_store = zarr.storage.FSStore("s3://tmp-census-zarr/v1/homo_sapiens/0041b9c3-6a49-4bf7-8514-9bc7190067a7.zarr")
http_store = zarr.storage.FSStore("https://tmp-census-zarr.s3.amazonaws.com/v1/homo_sapiens/0041b9c3-6a49-4bf7-8514-9bc7190067a7.zarr")
vc = VitessceConfig(schema_version="1.0.15")
dataset = vc.add_dataset().add_object(
AnnDataWrapper(
adata_store=http_store,
obs_embedding_paths=["obsm/X_pca"],
obs_embedding_names=["PCA"],
obs_set_paths=["obs/cell_type"],
obs_set_names=["cell_type"],
obs_feature_matrix_path="X",
feature_labels_path="var/feature_name",
coordination_values={
"featureLabelsType": "gene_symbol"
}
)
)
scatterplot = vc.add_view(cm.SCATTERPLOT, dataset=dataset, mapping="UMAP")
cell_sets = vc.add_view(cm.OBS_SETS, dataset=dataset)
genes = vc.add_view(cm.FEATURE_LIST, dataset=dataset)
#heatmap = vc.add_view(cm.HEATMAP, dataset=dataset)
layout = vc.layout((scatterplot | (cell_sets / genes)))
vw = vc.widget()
vw |
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
-
Hey! I am running into some trouble visualizing an anndata in Zarr format that I've uploaded to a public bucket. Here's what I'm running:
But the webapp is blank. AFAICT the web app is trying to retrieve the data from
localhost
even though I've passed a zarr store backed by s3. Here are the console errors that make me think that:I've cobbled together the code above from a combination of the s3 data export tutorial and the zarr tutorial.
What am I supposed to be doing differently here?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions