Learn R Programming

dynwrap (version 1.2.4)

calculate_attraction: Calculate the attraction of cells to other cells using velocity

Description

Calculate the attraction of cells to other cells using velocity

Usage

calculate_attraction(
  current,
  projected,
  cells = colnames(projected),
  n_waypoints = 50,
  k = 50
)

Value

Matrix containing the attraction ([-1, 1]) of each cell to the waypoint cells

Arguments

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