aggregateByGenet function

aggregateByGenet