Skip to contents

This function calculates the clustering statistics (e.g., number of singletons, clusters, and no features). Alongside the frequency of these events, the size of resistance and revertant clusters are reported. Two additional statistsics are employed: 1. Phylogenetic frequency: No. clusters + singletons / total opportunities (i.e., phylogenetic events + tips without the trait) 2. Clustering frequency: No. clusters / total phylogenetic events (i.e., singleton events + clusters)

Usage

asr_cluster_analysis(tip_data_df)

Arguments

tip_data_df

Tip data frame object from asr_cluster_detection()

Value

Dataframe row with data on the phylogenetic clustering of the trait.