Learn R Programming

PhylogeneticEM (version 1.0.1)

init.enumerate_parsimony: Initialization for the enumeration of parsimonious solutions.

Description

init.enumerate_parsimony is used in function enumerate_parsimony, and initialize the correct data structure.

Usage

init.enumerate_parsimony(phy, clusters, pos)

Arguments

phy

Input tree.

clusters

a vector representing the group of each tip.

Value

A list of size nNode + ntaxa, as described above.

Details

This function returns a list with nNodes + ntaxa entries. Entries correponding to the tips are initialized with a list of nclus matrices. For tip i of group k, all matrices are set to NULL, exept for the kth, set to a vector of size nNodes + ntaxa, with entry i set to k, and all the others to NA.