ClusterExperiment is a class that extends
SummarizedExperiment and is used to store the data
and clustering information.
In addition to the slots of the
ClusterExperiment object has the additional slots described
in the Slots section.
There are several methods implemented for this class. The most
important methods (e.g.,
...) have their own help page. Simple helper methods are described in the
Methods section. For a comprehensive list of methods specific to this class
see the Reference Manual.
clusterExperiment creates an object of
ClusterExperiment. However, the typical way of creating
these objects is the result of a call to
Note that when subsetting the data, the co-clustering and dendrogram information are lost.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
clusterExperiment(se, clusters, ...) ## S4 method for signature 'matrix,ANY' clusterExperiment(se, clusters, ...) ## S4 method for signature 'SummarizedExperiment,numeric' clusterExperiment(se, clusters, ...) ## S4 method for signature 'SummarizedExperiment,character' clusterExperiment(se, clusters, ...) ## S4 method for signature 'SummarizedExperiment,factor' clusterExperiment(se, clusters, ...) ## S4 method for signature 'SummarizedExperiment,matrix' clusterExperiment(se, clusters, transformation, primaryIndex = 1, clusterTypes = "User", clusterInfo = NULL, orderSamples = 1:ncol(se), dendro_samples = NULL, dendro_index = NA_real_, dendro_clusters = NULL, dendro_outbranch = NA, coClustering = NULL)
a matrix or
can be either a numeric or character vector, a factor, or a numeric matrix, containing the cluster labels.
function. A function to transform the data before performing steps that assume normal-like data (i.e. constant variance), such as the log.
integer. Sets the 'primaryIndex' slot (see Slots).
a string describing the nature of the clustering. The values 'clusterSingle', 'clusterMany', 'mergeClusters', 'combineMany' are reserved for the clustering coming from the package workflow and should not be used when creating a new object with the constructor.
a list with information on the clustering (see Slots).
a vector of integers. Sets the 'orderSamples' slot (see Slots).
dendrogram. Sets the 'dendro_samples' slot (see Slots).
numeric. Sets the dendro_index slot (see Slots).
dendrogram. Sets the 'dendro_clusters' slot (see Slots).
logical. Sets the dendro_outbranch slot (see Slots).
matrix. Sets the 'coClustering' slot (see Slots).
clusterExperiment constructor function gives clusterLabels
based on the column names of the input matrix/SummarizedExperiment. If
missing, will assign labels "cluster1","cluster2", etc.
function. Function to transform the data by when methods that assume normal-like data (e.g. log)
matrix. A matrix giving the integer-valued cluster ids for each sample. The rows of the matrix correspond to clusterings and columns to samples. The integer values are assigned in the order that the clusters were found, if found by setting sequential=TRUE in clusterSingle. "-1" indicates the sample was not clustered.
numeric. An index that specifies the primary set of labels.
list. A list with info about the clustering.
If created from
clusterSingle, clusterInfo will include the
parameter used for the call, and the call itself. If
sequential = TRUE
it will also include the following components.
clusterInfoif sequential=TRUE and clusters were successfully
found, a matrix of information regarding the algorithm behavior for each
cluster (the starting and stopping K for each cluster, and the number of
iterations for each cluster).
whyStopif sequential=TRUE and clusters were successfully
found, a character string explaining what triggered the algorithm to stop.
character vector with the origin of each column of clusterMatrix.
dendrogram. A dendrogram containing the cluster
relationship (leaves are samples; see
dendrogram. A dendrogram containing the cluster
relationship (leaves are clusters; see
numeric. An integer giving the cluster that was used to make the dendrograms. NA_real_ value if no dendrograms are saved.
logical. Whether the dendro_samples dendrogram put missing/non-clustered samples in an outbranch, or intermixed in the dendrogram.
matrix. A matrix with the cluster co-occurrence
information; this can either be based on subsampling or on co-clustering
across parameter sets (see
clusterMany). The matrix is a square matrix
with number of rows/columns equal to the number of samples.
a list, one per cluster in
element of the list is a matrix with nrows equal to the number of different
clusters in the clustering, and consisting of at least two columns with the
following column names: "clusterId" and "color".
a numeric vector (of integers) defining the order of samples to be used for plotting of samples. Usually set internally by other functions.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.