random_root: Find a random root cell index

View source: R/dpt-helpers.r

random_rootR Documentation

Find a random root cell index

Description

Finds a cell that has the maximum DPT distance from a randomly selected one.

Usage

random_root(dm_or_dpt)

Arguments

dm_or_dpt

A DiffusionMap or DPT object

Value

A cell index

Examples

data(guo)
dm <- DiffusionMap(guo)
random_root(dm)


theislab/destiny documentation built on Jan. 27, 2024, 9:57 p.m.