profile_matrix_kmeans: Profile Matrix k-means Clustering

Description Usage Arguments Value Examples

View source: R/p05_profile_matrix_kmeans.R

Description

This function perform k-means clustering on the profile matrix using stats::kmeans() function. It tries to cluster the matrix by default "Hartigan-Wong" algorithm. If this algorithm fails at Quick-TRANSfer stage, clustering is done with "MacQueen"

Usage

1
2
3
4
5
6
7
8
9
profile_matrix_kmeans(
  mat,
  km,
  clustFile,
  name,
  kmIter = 100,
  kmStarts = 150,
  ...
)

Arguments

mat

profile matrix

km

number of cluster centers

clustFile

File to which cluster data will be stored

name

Sample name

kmIter

iter.max argument of stats::kmeans() function. Default: 100

kmStarts

nstart argument of stats::kmeans() function. Default: 150

...

other arguments for stats::kmeans() function

Value

A list with two elements:

Examples

1

lakhanp1/chipmine documentation built on March 6, 2021, 9:06 a.m.