stlearn.pl.lr_go

stlearn.pl.lr_go(adata, n_top: int = 20, highlight_go: Optional[list] = None, figsize=(6, 4), rot: float = 50, lr_text_fp: Optional[dict] = None, highlight_color: str = 'yellow', max_text: int = 50, show: bool = True)[source]

Plots the results from the LR GO analysis.

Parameters:
  • adata (AnnData) – Data object on which st.tl.cci.lr & st.tl.cci.run_lr_go has been called.

  • n_top (int) – Specifies the no. of GO terms to show.

  • highlight_go (list) – Names of GO terms to highlight in different color & text.

  • figsize (tuple) – Size of the figure.

  • rot (int) – Rotation of the text labels for the GO terms.

  • lr_text_fp (dict) – Dictionary specifying matplotlib text params that control rendering of label on the points.

  • highlight_color (str) – The color to plot the GO terms specified in highlight_go.

  • max_text (int) – If n_top exceeds this number, stop showing the GO text, since can cause crowding.

  • show (bool) – Whether to show the plot.