findMinIncCladeOfStrains: Finding out and summarising the minimal inclusive clade...

View source: R/func__findMinIncCladeOfStrains.R

findMinIncCladeOfStrainsR Documentation

Finding out and summarising the minimal inclusive clade containing all given strains

Description

This function works in a similar way as the function findMinIncClade, except it works on a given set of strains rather than a pair of alleles.

Usage

findMinIncCladeOfStrains(strains = NULL, clade.pam = NULL, clade.sizes = NULL)

Arguments

strains

a vector of strain names

clade.pam

a presence/absence matrix of samples in each clade of an input tree. It can be obtained using the function tree2Clades of phylix.

clade.sizes

(optional) A named vector of integers for the number of samples in each clade. It can be obtained from the element "sizes" in the outputs of the function tree2Clades. Optional.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

mic <- findMinIncCladeOfStrains(strains = c("strain1", "strain2"), clade.pam = assoc[["struc"]][["clades"]][["pam"]],
clade.sizes = assoc[["struc"]][["clades"]][["sizes"]])


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.