Learn R Programming

IntClust (version 0.0.2)

SharedComps: Intersection of clusters over multiple methods

Description

The SharedComps function is an easy way to select the compounds that are shared over clusters of different methods.

Usage

SharedComps(List,nrclusters=NULL,fusionsLog=FALSE,WeightClust=FALSE,names=NULL)

Arguments

List

A list of clustering outputs or the output of the DiffGenes function. The first element of the list will be used as a reference in ReorderToReference.

nrclusters

If List is the output several clustering methods, it has to be provided in how many clusters to cut the dendrograms in.

fusionsLog

To be handed to ReorderToReference.

WeightClust

To be handed to ReorderToReference.

names

Names of the methods or clusters.

Value

A vector containing the shared compounds of all listed elements.

Examples

Run this code
# NOT RUN {
data(fingerprintMat)
data(targetMat)
data(geneMat)
data(GeneInfo)
data(ListGO)

MCF7_F = Cluster(fingerprintMat,type="data",distmeasure="tanimoto",normalize=FALSE,
method=NULL,clust="agnes",linkage="ward",gap=FALSE,maxK=55,StopRange=FALSE)
MCF7_T = Cluster(targetMat,type="data",distmeasure="tanimoto",normalize=FALSE,
method=NULL,clust="agnes",linkage="ward",gap=FALSE,maxK=55,StopRange=FALSE)

L=list(MCF7_F,MCF7_T)
names=c('FP','TP')

Comps=SharedComps(List=L,nrclusters=7,fusionsLog=FALSE,WeightClust=FALSE,names=names)

# }

Run the code above in your browser using DataLab