validate_data_cherryDist {MethEvolSIM}R Documentation

Validate Structure of Input Data for Cherry Distance Computation

Description

This function checks whether the provided input data has the required structure. It ensures that the number of tips is sufficient and that the data structure is consistent across tips and structures.

Usage

validate_data_cherryDist(cherryDist, data)

Arguments

cherryDist

A data frame containing cherry pair distances, including tip indices (output from get_cherryDist)

data

A nested list representing structured data for each tip, following the format data[[tip]][[structure]].

Details

The function performs several validation steps:

If any of these conditions fail, the function throws an error with a descriptive message.


[Package MethEvolSIM version 0.2.1 Index]