Description Usage Arguments Value Examples
calculateDistance
calculates a distance matrix between samples. The
type of distance calculate can be modifier by setting FUN
, which
expects a function with a matrix input as its first argument.
1 2 3 4 5 6 7 8 9 10 11 12 13 | calculateDistance(x, FUN = stats::dist, ...)
## S4 method for signature 'ANY'
calculateDistance(x, FUN = stats::dist, ...)
## S4 method for signature 'SummarizedExperiment'
calculateDistance(
x,
FUN = stats::dist,
exprs_values = "counts",
transposed = FALSE,
...
)
|
x |
a
|
FUN |
a |
... |
other arguments passed onto |
exprs_values |
a single |
transposed |
Logical scalar, is x transposed with cells in rows? |
a sample-by-sample distance matrix, suitable for NMDS, etc.
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.