Skip to content

Celltype colors in plotting functions #356

Description

@LukasNbio

Hi all,

I want to plot my LR interaction using the following code:

st.pl.lr_plot(
adata,
"FN1_SDC1",
use_label='celltype',
show_image=False,
outer_size_prop=1,
outer_mode=None,
pt_scale=30,
sig_spots= True,
)

Although I have my celltype_colors in adata.uns[celltype_colors], it does not use them for the plot. Further, when plotting I get the following warning:

ImplicitModificationWarning: Trying to modify attribute ._uns of view, initializing view as actual. self.adata[0].uns[self.use_label + "_colors"] = []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions