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)

Arguments

pattern

list of sequences' pattern (profile)

meta

metadata of the sequences

target

column name of the target group

get_count

whether to return the count of samples rather than the raw number, default to FALSE.

Value

Will return the Simpson's index of the list of patterns.