Create a single interesting groups column (interestingGroups) used for coloring in plots. When multiple interesting groups are present, unite into a single column, delimited by a colon.

uniteInterestingGroups(object, ...)

# S4 method for DataFrame
uniteInterestingGroups(object, interestingGroups)

Arguments

object

Object.

interestingGroups

character. Groups of interest that define the samples. If left unset, defaults to sampleName.

...

Additional arguments.

Value

Modified object. Now contains an interestingGroups column.

Examples

data(rse, package = "acidtest") object <- rse from <- sampleData(object) to <- uniteInterestingGroups( object = from, interestingGroups = interestingGroups(object) ) print(to)
#> DataFrame with 12 rows and 3 columns #> condition sampleName interestingGroups #> <factor> <factor> <factor> #> sample01 A sample01 A #> sample02 A sample02 A #> sample03 A sample03 A #> sample04 A sample04 A #> sample05 A sample05 A #> ... ... ... ... #> sample08 B sample08 B #> sample09 B sample09 B #> sample10 B sample10 B #> sample11 B sample11 B #> sample12 B sample12 B