calculate_simpson_by_group
is used to calculate Simpson's index.
Which is in the range of 0-1, where the greater the value,
the more diverse the population.
calculate_simpson_by_group(pattern, meta, target)
list of sequences' pattern (profile)
the metadata
the target column name
Will return the Simpson's index of the list of patterns.