Learn R Programming

PhylogeneticEM (version 1.0.0)

update.enumerate_parsimony: Actualization of the enumeration.

Description

update.enumerate_parsimony is used in function enumerate_parsimony, and compute the solution for the parent node, given its children.

Usage

update.enumerate_parsimony(daughters, daughtersParams, parent, cost, clus, pos, ...)

Arguments

daughters
vector of daughters nodes.
daughtersParams
list with length(daughters) entries, each entry being a list of k matrices representing the possible allocations starting from daughter.
parent
the parent node.

Value

A list of size nclus, each entry being a matrix representing the possible allocations starting with node parent in state k.

Details

This function takes a list with L entries corresponding to the children of a node, and compute, for all the regimes, the possible allocations starting with parent node in that regime. It uses functions select.matrices to select the possible states of the children, and matrix_of_possibles to find the possible states.