cluster2pattern-methods: Generic cluster2pattern function

Description Usage Arguments Value Examples

Description

Function to make patterns of continuous weights from clusters.

Usage

1
2
3
4
5
6
7
cluster2pattern(clusters, NP, Data, ...)

## S4 method for signature 'kmeans'
cluster2pattern(clusters, Data)

## S4 method for signature 'hclust'
cluster2pattern(clusters, NP, Data = NA)

Arguments

clusters

a cluster object which could be either an hclust or a kmeans object

NP

number of desired patterns

Data

data used to make clusters object

...

Additional arguments to cluster2pattern

Value

An object of class pclust containing pattern weights corresponding for each cluster.

Examples

1
2
3
4
5
6
k.RNAseq6l3c3t<-kmeans(p.RNAseq6l3c3t,22)
cluster2pattern(clusters=k.RNAseq6l3c3t,NP=22,Data=p.RNAseq6l3c3t)

distp <- dist(p.RNAseq6l3c3t)
hc.RNAseq6l3c3t <- hclust(distp)
cluster2pattern(clusters=hc.RNAseq6l3c3t,NP=22,Data=p.RNAseq6l3c3t)

projectR documentation built on Nov. 8, 2020, 7:50 p.m.