sample.cluster.table: Sample-cluster table

Description Usage Arguments Value Author(s) See Also Examples

Description

Cuts a the WECCAsc or WECCAhc generated dendrogram at a desired number of clusters. Then, produces a data.frame telling which samples belong to which cluster.

Usage

1
sample.cluster.table(cghdata.regioned, dendrogram, nclusters)

Arguments

cghdata.regioned

A list-object as returned by regioning.sc.

dendrogram

Determines if and how the row dendrogram should be computed and reordered. Should be a dendrogram as returned by WECCAsc or WECCAhc.

nclusters

An integer with the desired number of clusters.

Value

A data.frame with the first two columns containing the sample number and name, and the third column the cluster information.

Author(s)

Wessel N. van Wieringen: w.vanwieringen@vumc.nl

See Also

cutree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# generate object of class
data(WiltingCalled)

# make region data (soft and hard calls)
WiltingRegioned <- regioning(WiltingCalled)

# clustering with soft.calls
dendrogram <- WECCAsc(WiltingRegioned)

# generate a heatmap of the found clustering
WECCA.heatmap(WiltingRegioned, dendrogram)

# specify the number of clusters to be extracted from the dendrogram
nclusters <- 2
table.clusters.samples <- sample.cluster.table(WiltingRegioned, dendrogram, nclusters)

tgac-vumc/WECCA documentation built on May 31, 2019, 9 a.m.