Plot sender influences overlayed on a RNA velocity plot
plot_sender_influence_velocity.Rd
Visualizes the contribution of each cell in the dataset towards the observed RNA velocities.
Usage
plot_sender_influence_velocity(
adata,
velocity_clusters,
velocity_cluster_key = "vcluster",
top_n_ligands = 3,
frameon = FALSE,
size = 40,
sender_palette = "Reds",
title = "Influence",
filename = "entrain_velocity_influence.png"
)
Arguments
- adata
Path to a
.h5ad
anndata
object. Must have had entrain_velocity run on it.- velocity_clusters
Values in
adata.obs.velocity_cluster_key
denoting which velocity clusters to visualize. The sender influences will represent contribution towards this velocity cluster only, not all velocities in the dataset.- velocity_cluster_key
Column name of
adata.obs
metadata denoting velocity clusters.- top_n_ligands
Number of top ligands whose influence to visualize. Default 3.
- frameon
scvelo.pl.velocity_embedding argument: Draws a frame around the plot.
- size
scvelo.pl.velocity_embedding argument: Size of points.
- sender_palette
A matplotlib colorscale.
- title
Plot title.
- filename
Filename of plot to save.