View source: R/parsimonyNumber.R
init.enumerate_parsimony | R Documentation |
init.enumerate_parsimony
is used in function enumerate_parsimony
,
and initialize the correct data structure.
init.enumerate_parsimony(phy, clusters, pos)
phy |
Input tree. |
clusters |
a vector representing the group of each tip. |
This function returns a list with Nnode + ntaxa entries. Entries corresponding to the tips are initialized with a list of nclus matrices. For tip i of group k, all matrices are set to NULL, except for the kth, set to a vector of size Nnode + ntaxa, with entry i set to k, and all the others to NA.
A list of size Nnode + ntaxa, as described above.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.