Aggregate a metadata column to get a summarized value for a cluster node
aggr_metadata(node_data, col_name, col_aggr, metadata, is_cluster)
data.frame with aggregated data
data.frame containing information about a set of cluster nodes
the name of the metadata column to aggregate
string naming a function used to aggregate the column
data.frame providing metadata on samples
logical vector indicating which rows of metadata are in the node to be summarized