get_cell_fam: Get family cells of a cell

Description Usage Arguments Value See Also

Description

Returns the labels of the family cells of a cell in a lineage or division tree.

Usage

1
2
get_cell_fam(tree, treeT = c("LT", "DT"), cell, type = c("m", "gm", "d",
  "gd", "s", "c"))

Arguments

tree

The connected lineage or division tree where the cell specified in cell belongs, an object of class "igraph".

treeT

A character string naming the type of tree:

  • "LT" if tree is a lineage tree

  • "DT" if tree is a division tree

cell

The label of the cell in the tree whose family cells will be returned, a character string. It can be any non-root cell, as returned from get_cells.

type

A character string naming the type of the family cells to be returned:

  • "m" for mother

  • "gm" for grandmother

  • "d" for daughters

  • "gd" for granddaughters

  • "s" for sibling

  • "c" for cousins

Value

The labels of the correponding family cells of the cell, a vector of character strings. In case no family cells are found, NULL is returned.

See Also

isConnected for checking if a tree is connected.


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