View source: R/RepDaAnalysisFns.R
findOptimalK | R Documentation |
Finds optimal k as the average optimal k detected from the within sample clustering of selected repertoire samples.
findOptimalK(repSeqObj, nSamEval = 2, clusterby, minCSizePerc = 0.1, minNClonesPerCluster = 20, kmerWidth = 4, posWt = T, distMethod = "euclidean")
repSeqObj |
is an object containing all repertoire sample data |
posWt |
boolean to give weights to kmer frequencies depending on their position in the CDR3 |
distMethod |
the distance method used for determining distance between CDR3 feature vectors, default "euclidean" |
returns an optimal k for dividing unsupervised clustering results into k compact clusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.