MarcElosua/SPOTlight

How to plot specific cell type proportions in the newest version of spotlight?

awesomedeer opened this issue · 1 comments

Dear @MarcElosua
From the newest manual I don't see the commands to join decomposition to metadata and plot specific cell type proportions.

Best regards
Song

Hi @awesomedeer,

If you're working with a Seurat object it should be the same as before. If working with a Bioconductor data containers you can follow along here

plotSpatialScatterpie(
    x = spe,
    y = mat,
    cell_types = colnames(mat),
    img = FALSE,
    scatterpie_alpha = 1,
    pie_scale = 0.4) +
    scale_fill_manual(
        values = pal,
        breaks = names(pal))

Where spe is your spatial experiment and mat are your predicted cell type proportions.