Build a named list mapping each group to the vector of sample_names
in that group, preserving the current sample order.
getSampleGroups2(qseaSet)A named list of character vectors, where each list name is a group and
each element is the ordered vector of sample names in that group.
Groups are taken from the group column of the sampleTable. The order of
samples within each group reflects their current order in the qseaSet.
Useful for per-group plotting or aggregation utilities.
data(exampleTumourNormal, package = "mesa")
# Internal helper (not exported): inspect structure of the mapping
exampleTumourNormal %>%
mesa:::getSampleGroups2()
#> $Colon1_N
#> [1] "Colon1_N"
#>
#> $Colon1_T
#> [1] "Colon1_T"
#>
#> $Colon2_N
#> [1] "Colon2_N"
#>
#> $Colon2_T
#> [1] "Colon2_T"
#>
#> $Lung1_N
#> [1] "Lung1_N"
#>
#> $Lung1_T
#> [1] "Lung1_T"
#>
#> $Lung2_N
#> [1] "Lung2_N"
#>
#> $Lung2_T
#> [1] "Lung2_T"
#>
#> $Lung3_N
#> [1] "Lung3_N"
#>
#> $Lung3_T
#> [1] "Lung3_T"
#>