Description Usage Arguments Details Value Author(s) See Also Examples
Perform multi-dimensional scaling (MDS) on cells, based on the data in a SummarizedExperiment object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | calculateMDS2(x, ...)
## S4 method for signature 'ANY'
calculateMDS2(
x,
FUN = calculateDistance,
ncomponents = 2,
ntop = 500,
subset_row = NULL,
scale = FALSE,
transposed = FALSE,
...
)
## S4 method for signature 'SummarizedExperiment'
calculateMDS2(x, ..., exprs_values = "counts", FUN = calculateDistance)
|
x |
For |
... |
For the |
FUN |
a function returning a |
ncomponents |
Numeric scalar indicating the number of MDS?g dimensions to obtain. |
ntop |
Numeric scalar specifying the number of features with the highest variances to use for dimensionality reduction. |
subset_row |
Vector specifying the subset of features to use for dimensionality reduction. This can be a character vector of row names, an integer vector of row indices or a logical vector. |
scale |
Logical scalar, should the expression values be standardized? |
transposed |
Logical scalar, is x transposed with cells in rows? |
exprs_values |
a single |
The function cmdscale
is used internally to compute
the MDS components.
a matrix is returned containing the MDS coordinates for each row and column.
Aaron Lun, based on code by Davis McCarthy, modified for flexible distance function input by Felix G.M. Ernst
cmdscale
, to perform the underlying calculations.
plotMDS
, to quickly visualize the
results.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.