Match the user-defined interesting groups to the values slotted within a SummarizedExperiment object, and check that they are valid. Otherwise supports a missing interestingGroups argument, which will then use the interestingGroups accessor function internally.

matchInterestingGroups(object, interestingGroups = NULL)

Arguments

object

SummarizedExperiment.

interestingGroups

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

Value

character. Interesting groups.

Examples

data(rse, package = "acidtest") matchInterestingGroups(rse)
#> [1] "condition"
matchInterestingGroups(rse, interestingGroups = NULL)
#> [1] "condition"
matchInterestingGroups(rse, interestingGroups = substitute())
#> [1] "condition"