Description Usage Arguments Value Examples
View source: R/cluster-classifier.R
This function calculates the mean value for each feature of each class to calculate the prototypic centroids of the different groups
1 |
data |
a scaled gene expression |
class |
a vector with the samples classes |
returns a data.frame
with the estimated prototypic centroids
for each class with the features names as rownames
1 2 3 4 5 6 7 8 9 10 11 12 | # load example dataset
require(iC10TrainingData)
require(pamr)
data(train.Exp)
calculate_distance <- select_distance(distancetype = "pearson")
Dist <- calculate_distance(train.Exp)
k <- 4
Pam <- cluster_algorithm(Dist, k)
table(Pam$cluster)
centroids <- k_centroids(train.Exp, Pam)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.