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 Nov. 19, 2024, 5:43 a.m.