R/findSignature.R
findSignature.Rd
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)
PCAGenomicSignatures-object
A character vector. If you are searching for multiple keywords
at the same time, use paste
with collapse="|"
argument.
The number of top ranked (based on abs(NES)) pathways you want to search your keyword
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.
A data frame or integer vector depending on the parameter k
.
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