isSubtree: Check if a tree is a subtree of another tree

Description Usage Arguments Value

Description

Checks if a lineage or division tree is a subtree of another lineage or division tree, regarding only the nodes of the trees.

Usage

1
2
isSubtree(subtree, tree, treeT = c("LT", "DT"), type = c("all", "nr",
  "inc"))

Arguments

subtree

The lineage or division tree which is supposed to be the subtree of tree, an object of class "igraph".

tree

The lineage or division tree which is supposed to be the supertree of subtree, an object of class "igraph".

treeT

A character string naming the type of subtree and tree:

  • "LT" if subtree and tree are lineage trees

  • "DT" if subtree and tree are division trees

type

A character string naming the type of cells regarding which the statement will be checked:

  • "all" for all cells (including any existing imaginary root cells)

  • "nr" for all non-root cells (excluding any existing imaginary root cells)

  • "inc" for all cells included in the analysis

Value

A logical value (TRUE or FALSE) indicating whether the subtree is a subtree of the tree or not.


vicstefanou/ViSCA documentation built on May 31, 2019, 10:50 p.m.