import cellestial as cl
import scanpy as sc
from lets_plot import *
LetsPlot.setup_html()
= sc.read("data/pbmc3k_pped.h5ad") data
3 umap
3.0.1 A simple umap
plot
= cl.umap(
plot
data,="leiden",
key="arrow",
axis_type=0.6,
size=True,
interactive=["sample"],
add_tooltips
) plot
3.1 Of course, it is possible to customize the plot
+ scale_color_hue() plot
3.2 You can also use a gene a key.
"NEAT1", color_high="#D2042D", add_tooltips=["leiden", "sample"]) cl.umap(data,
3.3 It is possible to use legends on the data
Note that this is only applicable to categorical data.
cl.umap(
data,="leiden",
key=0.8,
size=True,
legend_ondata=15,
ondata_size="plain",
ondata_fontface )
cl.versions()
cellestial: 0.6.0
scanpy: 1.10.4
anndata: 0.11.3
polars: 1.12.0