Description Usage Arguments Details Value Examples
Function for adding new clusterings in form of vector (single cluster) or matrix (multiple clusterings) to an existing ClusterExperiment object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## S4 method for signature 'ClusterExperiment,matrix'
addClusterings(
x,
y,
clusterTypes = "User",
clusterLabels = NULL,
clusterLegend = NULL
)
## S4 method for signature 'ClusterExperiment,ClusterExperiment'
addClusterings(x, y, transferFrom = c("x", "y"), mergeCEObjects = FALSE)
## S4 method for signature 'ClusterExperiment,vector'
addClusterings(x, y, makePrimary = FALSE, ...)
|
x |
a ClusterExperiment object |
y |
additional clusters to add to x. Can be a ClusterExperiment object or a matrix/vector of clusters. |
clusterTypes |
a string describing the nature of the clustering. The values 'clusterSingle', 'clusterMany', 'mergeClusters', 'makeConsensus' are reserved for the clustering coming from the package workflow and should not be used when creating a new object with the constructor. |
clusterLabels |
label(s) for the clusters being added. If |
clusterLegend |
a list giving the cluster legend for the clusters added. |
transferFrom |
If x and y are both |
mergeCEObjects |
logical If x and y are both |
makePrimary |
whether to make the added cluster the primary cluster
(only relevant if |
... |
For |
addClusterings adds y to x, and is thus not symmetric in the two
arguments. In particular, the primaryCluster
, all of the dendrogram
information, the merge information, coClustering
, and
orderSamples
are all kept from
the x object, even if y is a ClusterExperiment.
A ClusterExperiment
object.
1 2 3 4 5 6 7 8 9 10 | data(simData)
cl1 <- clusterSingle(simData, subsample=FALSE,
sequential=FALSE, mainClusterArgs=list(clusterArgs=list(k=3),
clusterFunction="pam"))
cl2 <- clusterSingle(simData, subsample=FALSE,
sequential=FALSE, mainClusterArgs=list(clusterArgs=list(k=3),
clusterFunction="pam"))
addClusterings(cl1, cl2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.