rank.gct {cmapR} | R Documentation |
Convert a GCT object's matrix to ranks
rank.gct(...) rank_gct(g, dim = "col", decreasing = TRUE) ## S4 method for signature 'GCT' rank_gct(g, dim = "col", decreasing = TRUE)
... |
arguments passed on to |
g |
the |
dim |
the dimension along which to rank (row or column) |
decreasing |
boolean indicating whether higher values should get lower ranks |
a modified version of g
, with the
values in the matrix converted to ranks
Other GCT utilities:
annotate.gct()
,
melt.gct()
,
merge.gct()
,
subset.gct()
(ranked <- rank_gct(ds, dim="column")) # scatter rank vs. score for a few columns m <- mat(ds) m_ranked <- mat(ranked) plot(m[, 1:3], m_ranked[, 1:3], xlab="score", ylab="rank")