Plotting Functions#
- easy_vitessce.configure_plots.configure_plots(disable_plots=None, enable_plots=None)[source]#
Deactivates and reactivates interactive Vitessce plots.
- Parameters:
disable_plots (list[str]) – List of plots.
enable_plots (list[str]) – List of plots.
- easy_vitessce.configure_plots.dotplot(adata, groupby, **kwargs)[source]#
Creates interactive dotplot.
- Parameters:
adata (AnnData) – AnnData object.
groupby (str) – Category group.
var_names (list[str]) – List of genes.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.embedding(adata, basis, **kwargs)[source]#
Creates interactive versions of UMAP, PCA, t-SNE plots.
- Parameters:
adata (AnnData) – AnnData object.
basis (str) – Name of plot (umap, pca, or tsne).
color (str) – Gene.
color_map (str) – Color map (viridis, plasma, jet). Defaults to viridis.
size ((float or int)) – Size of dots.
include_gene_list (bool) – If a list of genes is passed in, True will add a gene list for the last plot. False by default.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.heatmap(adata, **kwargs)[source]#
Creates interactive heatmap.
- Parameters:
adata (AnnData) – AnnData object.
groupby (str) – Category group.
var_names (list[str]) – List of genes.
color_map (str) – Color map (viridis, plasma, jet). Defaults to viridis.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.pca(adata, **kwargs)[source]#
Creates interactive PCA plot.
- Parameters:
adata (AnnData) – AnnData object.
color (str) – Gene or category group.
color_map (str) – Color map (viridis, plasma, jet).
size ((float or int)) – Size of dots.
include_gene_list (bool) – If a list of genes is passed in, True will add a gene list for the last plot. False by default.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.spatial(adata, **kwargs)[source]#
Creates interactive spatial plot. Similar syntax to Scanpy’s spatial plot.
- Parameters:
adata (AnnData) – AnnData object.
color (str) – Gene.
color_map (str) – Color map (viridis, plasma, jet). Defaults to viridis.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.tsne(adata, **kwargs)[source]#
Creates interactive t-SNE plot.
- Parameters:
adata (AnnData) – AnnData object.
color (str) – Gene or category group.
color_map (str) – Color map (viridis, plasma, jet).
size ((float or int)) – Size of dots.
include_gene_list (bool) – If a list of genes is passed in, True will add a gene list for the last plot. False by default.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.umap(adata, **kwargs)[source]#
Creates interactive UMAP plot.
- Parameters:
adata (AnnData) – AnnData object.
color (str) – Gene or category group.
color_map (str) – Color map (viridis, plasma, jet).
size (float or int) – Size of dots.
include_gene_list (bool) – If a list of genes is passed in, True will add a gene list for the last plot. False by default.
- Returns:
Vitessce widget. Documentation can be found here.
- easy_vitessce.configure_plots.violin(adata, groupby, **kwargs)[source]#
Creates interactive violin plot.
- Parameters:
adata (Anndata) – AnnData object.
groupby (str) – Category group.
keys (list[str]) – Genes.
- Returns:
Vitessce widget. Documentation can be found here.
- class easy_vitessce.spatialdata_plot.VitesscePlotAccessor(sdata)[source]#
Bases:
object
A class for configuring a spatial plot, using the same syntax as spatialdata-plot.
- render_images(element='', **kwargs)[source]#
Renders image.
- Parameters:
element (str) – location of image data inside “images” folder.
- Returns:
Self, allows for chaining.
- render_labels(element='', **kwargs)[source]#
Renders label data.
- Parameters:
element (str) – location of label data in “labels” folder.
- Returns:
Self, allows for chaining.
- render_points(element='', **kwargs)[source]#
Renders points.
- Parameters:
element (str) – location of point data in “points” folder.
- Returns:
Self, allows for chaining.