add_branch: Add a branch to an LT

Description Usage Arguments Value Prerequisites See Also

Description

Adds a lineage tree as a branch to another lineage tree at a specific position, defined by the cell which will be the mother of the root of the branch.

Usage

1
add_branch(LT, branch, cell, cell_list, col_list, Ncols)

Arguments

LT

The lineage tree to which the branch will be added, an object of class "igraph".

branch

The connected lineage tree (motherless branch) which will be added as a branch to the LT, an object of class "igraph".

cell

The label of the cell in the LT where the branch will be added, a character string. It can be any valid candidate mother cell, as returned from get_cand_mother_cells.

cell_list

A list containing all the cell instants of the movie.

col_list

A list containing all the colony instants of the movie.

Ncols

Number of colonies in the movie, a non-zero positive integer value.

Value

The new LT with the branch added, an object of class "igraph".

Prerequisites

See the Prerequisites section of get_cand_mother_cells.

See Also

extract_branch for extracting a branch from a tree, isConnected for checking if a tree is connected.


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