matrix_of_possibles: Compute parent matrix from possibles daughter matrices.

View source: R/parsimonyNumber.R

matrix_of_possiblesR Documentation

Compute parent matrix from possibles daughter matrices.

Description

matrix_of_possibles is used in function update.enumerate_parsimony to compute, from the list of possible matrices for the daughters, the matrix for the node (a group for the parent being fixed).

Usage

matrix_of_possibles(matrices)

Arguments

matrices

a list of matrices with ndaughters entries.

Details

This function select all possible combinations of rows from all the daughters, and merge then into one using function merge_complementary_vectors.

Value

Matrix of all possible regimes for the subtree bellow node parent.


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.