The method reorder
for MarkerList
objects
allows to reorder each set of markers according to some
auxiliary reference data, e.g, their gene expression in
different cell types.
sort
sorts each element of a marker list.
S4 (MarkerList) `reorder`(x, data, by = NULL, fun = max, by.fun = rowMins, decreasing = !missing(data)) S3 (MarkerList) `sort`(x, decreasing = FALSE, ...)
MarkerList
objectExpressionSet
object. These data must have
names or rownames against which markers can be match.factor
only used when
data
is a matrix-like object, toby
).by
).FUN
a MarkerList
object that also contain the computed
scores.
When data
is a matrix-like object, a score is
computed for each marker in two steps: the first step
computes scores for each marker within each group of
columns defined by the levels of by
(function
rowMins
); the second step aggregates these scores
into a single value for each marker (function
fun
).
The markers are then ordered wihtin their respective set,
according to the score and argument decreasing
.
reverse,MarkerList-method