get_similarity_from_tree: Calculate the pairwise similarity matrix between samples,...

View source: R/evaluation_functions.R

get_similarity_from_treeR Documentation

Calculate the pairwise similarity matrix between samples, from sample labels and a phylo tree of labels.

Description

Calculate the pairwise similarity matrix between samples, from sample labels and a phylo tree of labels.

Usage

get_similarity_from_tree(tree, labels)

Arguments

tree

a phylo object giving the tree structure of labels

labels

a label vector for n samples

Value

a n-by-n similarity matrix showing the similarity between samples given the labels and the tree structure of labels


pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.