Learn R Programming

IntClust (version 0.0.2)

FindCluster: Find a selection of compounds in the output of ReorderToReference

Description

FindCluster selects the compounds belonging to a cluster after the results of the methods have been rearranged by the ReorderToReference.

Usage

FindCluster(List, nrclusters=NULL, select = c(1, 1), fusionsLog = TRUE, 
WeightClust = TRUE, names = NULL)

Arguments

List

A list of the clustering outputs to be compared. The first element of the list will be used as the reference in ReorderToReference.

nrclusters

The number of clusters to cut the dendrogram in.

select

The row (the method) and the number of the cluster to select.

fusionsLog

To be handed to ReorderToReference.

WeightClust

To be handed to ReorderToReference.

names

Optional. Names of the methods.

Value

A character vector containing the names of the compounds in the selected cluster.

Examples

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

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=FindCluster(L,nrclusters=7,select=c(1,4))
Comps

# }

Run the code above in your browser using DataLab