aggregate_cells function

Aggregate cells