cluster_algorithm: Wrapper function to perform partition around medioids (PAM)...

Description Usage Arguments Details Value References Examples

View source: R/calculate_distance.R

Description

In galgoR, the partition around medioids (PAM) algorithm is the default clustering process used under the evolutionary process.

Usage

1

Arguments

c

a dissimilarity matrix object of type 'dist'

k

positive integer specifying the number of clusters, less than the number of observations

Details

The function runs the pam function of the 'cluster' package with options cluster.only =TRUE, diss = TRUE, do.swap=TRUE, keep.diss=FALSE, keep.data = FALSE, pamonce= 2

Value

Returns a 'list' with the value '$cluster' which contains the cluster assignment of each of the samples evaluated

References

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)
table(Pam$cluster)

## End(Not run)

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