Find the studies contributing each RAV

findStudiesInCluster(RAVmodel, ind = NULL, studyTitle = FALSE)

Arguments

RAVmodel

PCAGenomicSignatures object.

ind

A numeric vector containing the RAV indexes. Under the default (NULL), studies associated with all the RAV indexes will be returned as a list.

studyTitle

Default is FALSE. This parameter is effective only when the index value is specificed. If it's TRUE, the output will be a data frame with the study

Value

A list of character vectors. Under the default condition (ind = NULL), all the RAVs will be checked for their contributing studies and the length of the list will be same as the number of RAVs (= metadata(x)$k). If you provide the ind argument, studies associated with only the specified RAVs will be returned.

Note

Mainly used for model building, within buildAvgLoading.

Examples

data(miniRAVmodel)
findStudiesInCluster(miniRAVmodel, 1076)
#>    studyName PC Variance explained (%)
#> 1  SRP028155  3                   2.74
#> 2  SRP049340  8                   1.17
#> 3  SRP058840  4                   2.76
#> 4  SRP059035  2                   6.07
#> 5  SRP063867  4                   1.99
#> 6  SRP066204  5                   1.53
#> 7  SRP102952  1                  12.90
#> 8  SRP107198  7                   1.79
#> 9  SRP124967  1                   4.98
#> 10 SRP178271  2                   8.16