Comments (5)
We probably need to refactor the data wrapper classes so that many view config file definitions can be created while only a single file / directory is served
from vitessce-python.
@keller-mark Could you make that a bit clearer? I made a "multi-file" config in #32 but feel like I don't know quite know what I am doing. If you want to review there to make your ideas clear that's ok.
from vitessce-python.
That looks fine, I am referring more specifically to this loop https://github.com/vitessce/vitessce-python/blob/07a2721/vitessce/routes.py#L20 over data types: the loop assumes that for a specific data wrapper object obj
, the obj._get_data
function for a particular data type such as cells
will return both:
dt_obj_file_defs
like[ { "url": "http://localhost:4000/my-anndata.zarr", "fileType": "anndata-cells.zarr", "type": "cells" } ]
dt_obj_routes
which is a list of starlette Routes like[ Mount(self._get_route(dataset_uid, obj_i, "cells"), app=StaticFiles(directory=os.path.dirname(zarr_filepath), html=False, check_dir=False)), ]
but for the AnnData data types, we can get multiple data types out of the same anndata Zarr store ("cells", "expression-matrix", "cell-sets"), so if the loop iteration gets to "cell-sets" the route will return different dt_obj_file_defs
but will try to mount the same Zarr directory again. I am not actually sure if serving the same zarr store twice on two different routes will cause any issues but I figured there is a possibility
from vitessce-python.
@keller-mark That makes sense ok. Thanks for explaining.
from vitessce-python.
Done in #39
from vitessce-python.
Related Issues (20)
- Support `uid` field in VitessceConfig constructor
- Update `FileType` enum to match JS API values HOT 1
- ViewConfig.`use_coordination` with multiple coordinations of same type
- Refactor data_utils and extras_require HOT 1
- Support BiocPy SingleCellExperiment
- Convert flattened multi-level coordination JSON back to nested dict for `to_python`
- Snakemake pipeline for 10x Genomics Multiome outputs
- Demos for SquidPy example datasets
- Convert spatialdata-plot plotting tree to Vitessce config
- Failed to load model class "Anymodel" HOT 2
- Publish a Vitessce notebook on Posit Connect HOT 11
- AnnDataWrapper - support for obsSpots, obsPoints, etc.
- OmeTiffWrapper - support coordinationValues and fileType: "image.ome-tiff"
- Minimal example for obsSegmentations.json for visualizing polygons in Spatial View HOT 2
- Adding scale bar to spatial view image
- ValueError: data too large for non-BigTIFF file HOT 4
- Additional improvements to adata_to_multivec_zarr function
- Add option for widget to communicate directly with Zarr store (no local HTTP server) HOT 2
- Bumping supported Anndata Version? HOT 1
- Support automatic instantiation of Wrapper objects HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitessce-python.