regvelo.plotting.plot_grn_weight

regvelo.plotting.plot_grn_weight(adata, vae, TF, target_list, device='cpu')[source]

Plot cell-resolved regulatory weights for one TF against several targets.

For each target, extracts the cell-specific GRN weight of the TF -> target edge from rgv.tl.inferred_grn(..., cell_specific_grn=True), stores it in adata.obs, and draws a 3-column UMAP row: TF expression, target expression, and the per-cell edge weight.

Parameters:
  • adata (anndata.AnnData) – AnnData with a UMAP embedding; var.index must contain TF and every gene in target_list.

  • vae (regvelo.REGVELOVI) – Trained RegVelo model, used to infer the cell-specific GRN.

  • TF (str) – Transcription factor (regulator) whose outgoing edges are plotted.

  • target_list (iterable of str) – Target genes to plot, one row each.

  • device (str, optional) – Device passed to rgv.tl.inferred_grn for GRN inference. Default "cpu".

Return type:

None

Returns:

: None