runWalk: Walk between root cells and leaf cells

Description Usage Arguments Value Examples

View source: R/trajectory.R

Description

Walk between root cells and leaf cells

Usage

1
2
3
4
5
6
7
8
9
runWalk(
  object,
  mode = c("undirected", "directed", "max", "min", "upper", "lower", "plus"),
  max.run.forward = 20,
  backward.walk = FALSE,
  max.run.backward = 20,
  verbose = FALSE,
  ...
)

Arguments

object

A CYT object

mode

character. Specifies how igraph should interpret the supplied matrix. Possible values are: undirected, directed, upper, lower, max, min, plus. By default is undirected.

max.run.forward

numeric. Maximum cycles of forward walk.

backward.walk

logical. Whether to run backward walk.

max.run.backward

numeric. Maximum cycles of backward walk.

verbose

logical. Whether to print calculation progress.

...

Parameters passing to calculation function.

Value

A CYT object

Examples

1
2
3
4
5
cyt.file <- system.file("extdata/cyt.rds", package = "CytoTree")
cyt <- readRDS(file = cyt.file)

cyt <- runWalk(cyt, verbose = TRUE)
cyt <- runWalk(cyt, backward.walk = FALSE, verbose = TRUE)

CytoTree documentation built on Nov. 10, 2020, 2 a.m.