API Reference#

Cellestial is built on top of Lets-Plot. For further customization options, functionalities, utilities and many more please refer to Lets-Plot API.

Base#

plot

Base plot (for plots without data wrangling).

Basic#

bar

Bar Plot.

heatmap

Heatmap.

scatter

Scatter Plot.

Common#

xyplot

Scatter Plot.

xyplots

Scatter Plots.

Special#

dotplot

Dotplot.

Dimensionality Reduction#

dimensional

Dimensionality reduction plot.

umap

UMAP Dimensionality reduction plot.

pca

PCA Dimensionality reduction plot.

tsne

tSNE Dimensionality reduction plot.

expression

Dimensionality reduction plot of expression data.

dimensionals

Grid of dimensionality reduction plots.

umaps

Grid of dimensionality reduction plots.

pcas

Grid of dimensionality reduction plots.

tsnes

Grid of dimensionality reduction plots.

expressions

Grid of dimensionality reduction plots.

Distributions#

boxplot

Boxplot.

violin

Violin Plot.

boxplots

Boxplots.

violins

Violin Plots.

Data Frames#

build_frame

Build a DataFrame from an AnnData object.

Layers#

cluster_outlines

Returns a Layer of geom_path that outlines the given clusters.

arrow_axis

Adds arrows as the X and Y axis to the plot.

Utility#

show_colors

Show a grid of hand-picked colors.

get_mapping

Returns the mapping of the plot as a dict.

retrieve

Retrieves the dataframe from a PlotSpec or SupPlotsSpec using the index.

slice

Slice a ggrid (SupPlotsSpec) objects with given index.