Skip to contents

Visualize the ligand-target regulatory relationships that are driving the analyzed trajectory paths.

Usage

plot_ligand_targets(
  obj,
  path,
  n_top_targets = 10,
  n_top_ligands = 10,
  ligand_target_matrix,
  metric = "Covariances"
)

Arguments

obj

A seurat object that has been analyzed with get_path_ligands or get_traj_ligands_monocle.

path

A path name. Must be from in names(obj@misc$entrain$paths)

n_top_targets

Number of top importance target genes to visualize. Default 10.

n_top_ligands

Number of top ligands to visualize. Default 10.

ligand_target_matrix

NicheNet ligand-target data file.

metric

One of "Covariances" or "Correlations". Default "Covariances". Determines whether to use pseudotime covariance or pseudotime correlation in the calculation of TRAINing genes.

Value

A plotly plot object.