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

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`)