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 -> targetedge fromrgv.tl.inferred_grn(..., cell_specific_grn=True), stores it inadata.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.indexmust containTFand every gene intarget_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_grnfor GRN inference. Default"cpu".
- Return type:
- Returns:
: None