Comments (2)
vc.link_views_by_dict([spatial_view, another_view], {
ct.OBS_COLOR_ENCODING: "cellSetSelection",
ct.OBS_SET_SELECTION: [
["colname", "obs_set_one"],
["colname", "obs_set_two"],
],
ct.OBS_SET_COLOR: [
{
"path": ["colname", "obs_set_one"],
"color": [0, 12, 123],
},
{
"path": ["colname", "obs_set_two"],
"color": [240, 123, 58],
},
]
}, meta=False)
Hi @srivarra this can be done with the above. The OBS_COLOR_ENCODING tells Vitessce whether to use the sets (categorical) vs. the gene expression values (quantitative) for colors. (For historical reasons the accepted values for this are the strings cellSetSelection
or geneSelection
despite moving to the more general obs
prefix everywhere else). The OBS_SET_SELECTION is a list of paths for currently-selected sets. The OBS_SET_COLOR is a list of objects like { path, color }
where color is an array of [r, g, b]
values.
Thanks for the suggestion about using the adata.uns
option, I did not know about the _colors
convention in scanpy. I will make a new issue to track that
from vitessce-python.
@keller-mark Thank you very much! I'll go ahead and give this a try!
from vitessce-python.
Related Issues (20)
- 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
- Support using JSX for writing plugin views
- Helper function to use adata.uns[obs_set_col + "_colors"] for initial obs set colors
- Notebooks environment.yml PackageNotFoundError for starlette==0.14.0
- Notebooks errors (list)
- Adding Vitessce widgets to a visualization dashboard HOT 1
- Define a plugin class/dataclass to couple on_config_change and anywidget.invoke handlers with plugin_esm HOT 1
- Support writing plugin_esm using local file with anywidget FileContents
- Ability to use comparative views + pageMode in a Jupyter notebook
- Warn if AnnDataWrapper options are empty as it would result in empty list for `vc['datasets']['files']` HOT 4
- Vitessce python on remote jupyter servers do not work HOT 3
- Command functions should be able to return an updated config HOT 1
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.