View source: R/RepDaAnalysisFns.R
getCenters | R Documentation |
This function calculates cluster centroids given sequences (rows) and k-mer usage (columns), and cluster assignment labels for each sequence. Centroid vector for each cluster is the average of the k-mer usage frequencies of clonotypes in the cluster.
getCenters(seqmers, clslabels)
seqmers |
is a dataframe/matrix with observations (sequences) on the rows and features (k-mer usage frequences) on the columns |
clslabels |
is a vector containing cluster assignment labels for every sequence in seqmers |
a matrix with rows containing the cluster labels and columns containing an average usage frequency for each possible k-mer representing the cluster centroid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.