Learn R Programming

destiny (version 2.0.4)

find_tips: Find tips in a DiffusionMap object

Description

Find tips in a DiffusionMap object

Usage

find_tips(dm_or_dpt, root = random_root(dm_or_dpt))

Arguments

dm_or_dpt
A DiffusionMap or DPT object
root
Root cell index from which to find tips. (default: random)

Value

An integer vector of length 3

Examples

Run this code
data(guo)
dm <- DiffusionMap(guo)
is_tip <- l_which(find_tips(dm), len = ncol(dataset(dm)))
plot(dm, col = factor(is_tip))

Run the code above in your browser using DataLab