calculate_mcc_multi Calculate the multi-class MCC score for the SNPs. It assigns each SNP profile to a class, based on the majority of the samples having the profile, targets with the less samples are prioritised first, breaking ties by alphabetical order.

calculate_mcc_multi(pattern, meta, target = "target", priority = NULL)

Arguments

pattern

the SNP profile for each samples

meta

A data.table containing the meta data

target

the column name of the target in the meta data, default to target

priority

A data.table of the targets and priority, either supplied by user, or by default generated by generate_prioritisation.

Value

multiclass-MCC score