get_metric_fun: 'get_metric_fun'

get_metric_funR Documentation

get_metric_fun

Description

get_metric_fun is used to get the metrics function and required parameters. Additional metric may set by assigning to 'MinSNPs_metrics' variable.

Usage

get_metric_fun(metric_name = "")

Arguments

metric_name

name of the metric, by default percent/simpson

Value

a list, including the function to calculate the metric based on a position ('calc'), and function to check for additional parameters the function need ('args')


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