Merge variants and mapped.events data frame to a single data frame for fancy boxplot. Generally the columns of the two data frames should be named the same, including (cluster.col.name, vaf.col.names, cn.col.names, loh.col.names, column to highlight (driver), cluster, event). event column should match between the two and events in mapped.events will be excluded from variants data frame before merging them to prevent duplicate
# S3 method for variants.and.events
merge(variants, mapped.events = NULL,
cluster.col.name = "cluster", event.col.name = "event", vaf.col.names,
cn.col.names = c(), loh.col.names = c(), other.col.names = c())
variant data frame
data frame of events mapped onto cluster/clone that is output assign.events.to.clones()$events