Experimental function for collapsing groups in a cellMarkers objects.
collapse_group(mk, groups, weights = NULL)An updated cellMarkers class object.
A 'cellMarkers' class object.
Character vector of groups to be collapsed. The collapsed group retains the name of the 1st element.
Optional vector of weights for calculating the mean gene
expression across groups. If left as NULL weights are determined by the
total cell count in each group.