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.
Examples
data(RangedSummarizedExperiment, package = "AcidTest")
rse <- RangedSummarizedExperiment
matchInterestingGroups(rse)
#> [1] "condition"
matchInterestingGroups(rse, interestingGroups = NULL)
#> [1] "condition"
matchInterestingGroups(rse, interestingGroups = substitute())
#> [1] "condition"