View source: R/wrap_add_attraction.R
calculate_attraction | R Documentation |
Calculate the attraction of cells to other cells using velocity
calculate_attraction(
current,
projected,
cells = colnames(projected),
n_waypoints = 50,
k = 50
)
current |
Current expression |
projected |
Projected expression based on RNA velocity |
cells |
Which cells to use |
n_waypoints |
Number of waypoints to use |
k |
K knns |
Matrix containing the attraction ([-1, 1]) of each cell to the waypoint cells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.