7  pca

import cellestial as cl
import scanpy as sc
from lets_plot import *

LetsPlot.setup_html()

data = sc.read("data/pbmc3k_pped.h5ad")

7.0.1 By default, the pca function will use “leiden” as the key

plot = cl.pca(data, axis_type="arrow", size=0.6, interactive=True)
plot

7.1 Of course, it is possible to customize the plot

plot + scale_color_hue()

7.2 You can also use a gene a key.

cl.pca(data, "NEAT1", color_high="#D2042D")
cl.versions()
cellestial: 0.2.0
scanpy: 1.10.4
anndata: 0.11.0
polars: 1.12.0