ChooseClosestCluster: Determine Closest Cluster to Sample

Description Usage Arguments

Description

Helper function for MyClustering which chooses the closest cluster for a given sample

Usage

1
ChooseClosestCluster(ClustMeans, val, nClust)

Arguments

ClustMeans

An nClust x p numeric Matrix of the mean values of each paramater for each cluster.

val

The specific sample for which the closest cluster is desired.

nClust

Expected total number of clusters (i.e the possible dosage values). Default is 5 for tetraploids.


dsherma7/PolyploidDosageCalling documentation built on May 23, 2019, 6:06 p.m.