clsnumcount: Calculate the number of clusters for K-means clustering

Description Usage Arguments Details Value Author(s) Examples

View source: R/DynaMO.R

Description

Take a matrix with rows representing signals at each motif site and columns representing different samples.

Usage

1

Arguments

data

A matrix containing the signals at each motif site and sample.

Details

This function calculates the number of clusters for K-means clustering.

Value

An integer.

Author(s)

Zheng Kuang

Examples

1
2
3
readfile<-system.file("extdata","motif_filter_reads_cluster.txt",package="DynaMO",mustWork=TRUE)
data<-read.table(as.character(file),sep="\t",header=T)
clsnum<-clsnumcount(data[,1:4])

spo111/DynaMO documentation built on May 30, 2019, 7:59 a.m.