This function finds RAVs containing the keyword you provide. If you provide "the number of keyword-containing pathways per RAV" in argument k, it will give you the RAV number.

findSignature(RAVmodel, keyword, n = 5, k = NULL)

Arguments

RAVmodel

PCAGenomicSignatures-object

keyword

A character vector. If you are searching for multiple keywords at the same time, use paste with collapse="|" argument.

n

The number of top ranked (based on abs(NES)) pathways you want to search your keyword

k

The number of keyword-containing pathways you want to get the RAV number. Under default (NULL), the output will be a data frame with two columns: '# of keyword-containing pathways' and 'Freq'. If you assign the value for this argument, the output will be an integer vector containing the RAV index.

Value

A data frame or integer vector depending on the parameter k.

Examples

data(miniRAVmodel)
findSignature(miniRAVmodel, "Bcell")
#>   # of keyword-containing pathways Freq
#> 1                                0   17
#> 2                                5    3
findSignature(miniRAVmodel, "Bcell", k = 5)
#> [1] 16 17 18