validate_custom_groups: Validate user-defined custom groups for tree collapsing

View source: R/custom-groups.R

validate_custom_groupsR Documentation

Validate user-defined custom groups for tree collapsing

Description

Checks that every group is monophyletic and that tips do not overlap between groups.

Usage

validate_custom_groups(tree, groups)

Arguments

tree

A phylo object.

groups

A named list where each element is a character vector of tip labels belonging to that group.

Value

Invisibly returns TRUE if all checks pass. Otherwise stops with an informative error.


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.