CEC: Complementary Ensemble Clustering

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/CEC.R

Description

Function CEC performs which of the function CECa, CECb or CECc is specified by the user.

Usage

1
2
3
4
CEC(List, distmeasure = c("tanimoto", "tanimoto"),normalize=FALSE,method=NULL,
t = 10, r = NULL, nrclusters = NULL, weight = NULL, clust = "agnes",
linkage=c("flexible","flexible"),alpha=0.625,
WeightClust = 0.5,StopRange=FALSE,ResampleFeatures=TRUE)

Arguments

List

A list of data matrices. It is assumed the rows are corresponding with the objects.

distmeasure

A character vector with the distance measure for each data matrix. Should be one of "tanimoto", "euclidean", "jaccard","hamming".

normalize

Logical. Indicates whether to normalize the distance matrices or not. This is recommended if different distance types are used. More details on normalization in Normalization.

method

A method of normalization. Should be one of "Quantile","Fisher-Yates", "standardize","Range" or any of the first letters of these names.

t

The number of iterations.

r

Optional. The number of features to take for the random sample.

nrclusters

The number of clusters to cut the dendrogram in. If a sequence is specified either ADECb or ADECc is performed. A fixed number of clusters defaults to ADECa

weight

Optional. A list of different weight combinations for the data sets in List. If NULL, the weights are determined to be rqual for each data set. It is further possible to fix weights for some data matrices and to let it vary randomly for the remaining data sets. An example is provided in the details.

clust

Choice of clustering function (character). Defaults to "agnes".

linkage

A vector with the choice of inter group dissimilarity (character) for each data set.

alpha

The parameter alpha to be used in the "flexible" linkage of the agnes function. Defaults to 0.625 and is only used if the linkage is set to "flexible"

WeightClust

A weight for which the result will be put aside of the other results. This was done for comparative reason and easy access.

StopRange

Logical. Indicates whether the distance matrices with values not between zero and one should be standardized to have so. If FALSE the range normalization is performed. See Normalization. If TRUE, the distance matrices are not changed. This is recommended if different types of data are used such that these are comparable.

ResampleFeatures

Logical. Whether the features should be resamples. If TRUE, either CECa or CECc is performed.

Details

See the functions for CECa, CECb and CECc for more details

The weight combinations should be provided as elements in a list. For three data matrices an example could be: weights=list(c(0.5,0.2,0.3),c(0.1,0.5,0.4)). To provide a fixed weight for some data sets and let it vary randomly for others, the element "x" indicates a free parameter. An example is weights=list(c(0.7,"x","x")). The weight 0.7 is now fixed for the first data matrix while the remaining 0.3 weight will be divided over the other two data sets. This implies that every combination of the sequence from 0 to 0.3 with steps of 0.1 will be reported and clustering will be performed for each.

Value

The returned value is a list with the following four elements.

Incidence

The summed incidence matrices for each data matrix

IncidenceComb

The co-association matrix after a weighted sum of the elements of Incidence for each weight

Results

The hierarchical clustering result for each element in IncidenceComb

Clust

The result for the weight specified in Clustweight

The value has class 'CEC'

Note

For now, only hierarchical clustering with the agnes function is implemented.

Author(s)

Marijke Van Moerbeke

References

FODEH, J. S., BRANDT, C., LUONG, B. T., HADDAD, A., SCHULTZ, M., MURPHY, T., KRAUTHAMMER, M. (2013). Complementary Ensemble Clustering of Biomedical Data. J Biomed Inform. 46(3) pp.436-443.

See Also

CECa,CECb,CECc

Examples

1
2
3
4
5
6
7
data(fingerprintMat)
data(targetMat)
L=list(fingerprintMat,targetMat)

MCF7_CECa=CEC(List=L,distmeasure=c("tanimoto","tanimoto"),
normalize=FALSE,method=NULL,t=25,r=NULL,nrclusters=c(7,7),
clust="agnes",linkage=c("flexible","flexible"),StopRange=FALSE,ResampleFeatures=TRUE)

IntClust documentation built on May 2, 2019, 5:23 p.m.