rank.gct {cmapR} | R Documentation

## Convert a GCT object's matrix to ranks

### Description

Convert a GCT object's matrix to ranks

### Usage

    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

    (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")

[Package cmapR version 1.6.0 Index]