majorities creates a csv table of numerical alleles with group assignation and majority vote values with indications of any within group ties.

majorities(dist, h, errors)

Arguments

dist

A list object created after running dissimilarity.

h

Integer. Represents determined mismatch value.

errors

File name of the sample error results data csv as a character string.

Value

A csv of numerical alleles with group assignation, majority vote and indicated ties written to the `results/cluster/` sub-directory.

Details

When run it uses the list object created by running dissimilarity, a maximum number of allowable mismatches (or h value), the filtered allele data set from running miss_threshold and the sample errors from running gen_errors to create a csv. The output contains the numerical alleles with group assignation in a wide format which also displays the majority vote per group and any ties.

Author

Bart Huntley, bart.huntley@dbca.wa.gov.au

For more details see https://dbca-wa.github.io/ScatMatch/index.html the ScatMatch website

Examples

if (FALSE) {
majorities(dist = dissimilarity_list, h = 5, errors = "sample_error_results.csv")
}