rank_gct: Convert a GCT object's matrix to ranks

Description Usage Arguments Value See Also Examples

Description

Convert a GCT object's matrix to ranks

Usage

1
2
3
4
5
6
rank.gct(...)

rank_gct(g, dim = "col", decreasing = TRUE)

## S4 method for signature 'GCT'
rank_gct(g, dim = "col", decreasing = TRUE)

Arguments

...

arguments passed on to rank_gct

g

the GCT object to rank

dim

the dimension along which to rank (row or column)

decreasing

boolean indicating whether higher values should get lower ranks

Value

a modified version of g, with the values in the matrix converted to ranks

See Also

Other GCT utilities: annotate.gct(), melt.gct(), merge.gct(), subset.gct()

Examples

1
2
3
4
5
6
(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")

cmap/cmapR documentation built on Oct. 14, 2021, 12:51 a.m.