Relevel row or column data

relevelRowRanges(rowRanges)

relevelColData(colData)

Arguments

rowRanges

GRanges. Genomic ranges (e.g. genome annotations). Metadata describing the assay rows.

colData

DataFrame. Metadata describing the assay columns. For bulk RNA-seq, this data describes the samples. For single-cell RNA-seq, this data describes the cells.

Value

Modified object. Factor levels will be readjusted (i.e. superfluous levels are dropped).

Examples

data(rse) rowRanges <- SummarizedExperiment::rowRanges(rse) x <- relevelRowRanges(rowRanges)
#> Releveling factors in rowRanges.
#> [1] "GRanges object with 500 ranges and 5 metadata columns"
colData <- SummarizedExperiment::colData(rse) x <- relevelColData(colData)
#> Releveling factors in colData.
#> Length Class Mode #> 1 DataFrame S4