Description Usage Arguments Value
Preprocesses input data for .makeServer
.
1 2 | .preprocessData(counts, margin, resolutions, assignmentFunction,
coordinates = NULL)
|
counts |
count matrix. |
margin |
which margin of the count matrix to cluster. Valid values are
|
resolutions |
vector of resolutions to cluster. |
assignmentFunction |
function to compute cluster assignments. The function should have the following signature: integer (number of clusters) -> (m, n) feature matrix -> m-length vector (cluster assignment of each data point). |
coordinates |
optional |
list with the following elements:
$assignments
: tidy assignments
$means
: cluster means
$scores
: cluster scores for each spot in each resolution
$colors
: cluster colors
$coordinates
: spot coordinates, either from coordinates
or parsed from
assignments
$featureName
: name of the clustered feature (the "opposite" of margin
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.