Velocity Ligand Importance Heatmap
velocity_ligand_importance_heatmap.Rd
Visualize the ligands and their feature importances towards the velocity clusters.
Usage
velocity_ligand_importance_heatmap(
obj,
velocity_clusters = NULL,
n_top_ligands = 5,
ligand_target_matrix,
color_low = "#f6ffff",
color_high = "#01bfc4",
colorscale = "BuPu",
rescale_columns = TRUE
)
Arguments
- obj
A seurat object that has been analyzed with entrain_velocity
- velocity_clusters
Character vector of velocity clusters to include in the plot. Default
NULL
- include all velocity clusters,- n_top_ligands
Number of top ligands to visualize. Default 5.
- ligand_target_matrix
NicheNet ligand-target data file.
- color_low
Hex code of lower limit
- color_high
Hex code of upper limit.
- colorscale
Name of a color palette to be passed to the palette argument of scale_fill_distiller. Overrides color_low and color_high.
- rescale_columns
Boolean. If TRUE, rescales all ligand importances between 0 and 1. This is recommended because random forest importances are relative.