Skip to contents

Score a tree based on maximum likelihood

Usage

score_tree(tree, P, get_l_matrix = FALSE)

Arguments

tree

phylo object

P

genotype probability matrix

get_l_matrix

whether to compute the whole likelihood matrix

Value

list Likelihood scores of a tree

Examples

tree_likelihood = score_tree(tree_upgma, P_small)$l_tree