kcentroid: Function to calculate the centroids of different groups...

Description Usage Arguments Value Examples

View source: R/calculate_distance.R

Description

This function calculates the mean value for each feature of each class to calculate the prototypic centroids of the different groups

Usage

1

Arguments

data

a scaled gene expression matrix or data.frame with samples as columns and features as rows

class

a vector with the samples classes

Value

returns a data.frame with the estimated prototypic centroids for each class with the features names as rownames

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
rna_luad<-use_rna_luad()
prm <- rna_luad$TCGA$expression_matrix
Dist <- calculate_distance_pearson_cpu(prm)
k <- 4
Pam <- cluster_algorithm(Dist,k)$cluster
centroids <- kcentroid(prm,Pam)

## End(Not run)

harpomaxx/galgo documentation built on Aug. 11, 2020, 3:07 p.m.