Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CompatibleSplits

Which splits are compatible?


Description

Which splits are compatible?

Usage

CompatibleSplits(splits, splits2)

.CompatibleSplit(a, b, nTip)

.CompatibleRaws(rawA, rawB, bitmask)

Arguments

splits

An object of class Splits.

splits2

A second Splits object.

a, b

Raw representations of splits, from a row of a Splits object.

rawA, rawB

Raw representations of splits.

bitmask

Raw masking bits that do not correspond to tips.

Value

CompatibleSplits returns a logical matrix specifying whether each split in splits is compatible with each split in splits2.

.CompatibleSplit returns a logical vector stating whether splits are compatible.

.CompatibleRaws returns a logical vector specifying whether input raws are compatible.

Author(s)

Martin R. Smith (martin.smith@durham.ac.uk)

Examples

splits <- as.Splits(BalancedTree(8))
splits2 <- as.Splits(PectinateTree(8))

summary(splits)
summary(splits2)

CompatibleSplits(splits, splits2)

TreeTools

Create, Modify and Analyse Phylogenetic Trees

v1.4.4
GPL (>= 3)
Authors
Martin R. Smith [aut, cre, cph] (<https://orcid.org/0000-0001-5660-1727>), Emmanuel Paradis [cph] (<https://orcid.org/0000-0003-3092-2199>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.