calculate_mcc_multi: 'calculate_mcc_multi'

View source: R/addn_search.R

calculate_mcc_multiR Documentation

calculate_mcc_multi

Description

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.

Usage

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


ludwigHoon/minSNPs documentation built on March 25, 2024, 11:54 a.m.