| .preprocessData {SpatialCPie} | R Documentation |
Preprocesses input data for .makeServer.
.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)