add_velocity: Add velocity to a dynwrap dataset

Description Usage Arguments

View source: R/velocity.R

Description

Add velocity to a dynwrap dataset

Usage

1
2
3
4
5
6
7
8
9
add_velocity(
  dataset,
  spliced = dataset$expression,
  unspliced = dataset$expression_unspliced,
  mode = c("stochastic", "deterministic", "dynamical"),
  n_neighbors = 20L,
  velocity = get_velocity(spliced = spliced, unspliced = unspliced, mode = mode,
    n_neighbors = n_neighbors)
)

Arguments

dataset

A dataset created by wrap_data() or wrap_expression()

spliced

Spliced expression matrix

unspliced

Unspliced expression matrix

mode

Whether to run the estimation using the deterministic or stochastic model of transcriptional dynamics.

n_neighbors

Number of neighbors to use.

velocity

The velocity object as generated by [get_velocity()].


dynverse/scvelo documentation built on April 9, 2020, 3:42 a.m.