calculate_variant_within_group
is used to identify proportion of different samples
having the same profile.
calculate_variant_within_group(pattern, meta, target, get_count = FALSE)
list of sequences' pattern (profile)
metadata of the sequences
column name of the target group
whether to return the count of samples rather than the raw number, default to FALSE.
Will return the Simpson's index of the list of patterns.