Description Usage Arguments Details Value
Coerces a CELL object or a numeric matrix into a CLUSTER object.
This function transforms the cell profiles from a CELL object or from a numeric matrix into one or several cell cluster profiles by computing the means, the standard deviations, and the densities of each marker.
1 2 3 4 5 6 7 8 9 10 | as.CLUSTER(object, name = object@name, cluster = NULL,
bin.width = 0.05)
## S4 method for signature 'CELL'
as.CLUSTER(object, name = object@name, cluster = NULL,
bin.width = 0.05)
## S4 method for signature 'matrix'
as.CLUSTER(object, name = "cell_cluster",
cluster = NULL, bin.width = 0.05)
|
object |
a CELL object or a numeric matrix |
name |
a character specifying the internal name of the CLUSTER object to create |
cluster |
a character indicating a channel name that can be used to gather the cell profiles into several cluster profiles. If a channel named is specified then the created CLUSTER object will contain as many profiles as different values present in this channel. If this parameter is NULL then a CLUSTER object with only one profile will be created |
bin.width |
a numeric value indicating the width of the bins in the density estimation computations (default=0.05) |
The 'cluster' parameter is especially useful when importing FCS files containing the SPADE clustering results (where an additional channel is used to indicate the associations between cells and cell clusters) or FCS files from any other automatic gating algorithm.
In the context of a numeric matrix coercion, the matrix must have its column names corresponding to the cell markers.
a S4 object of class CLUSTER
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.