R/findSignature.R
findKeywordInRAV.Rd
Once you provide RAVmodel, keyword you're searching for, and the RAV number to this function, it will give you the abs(NES)-based rank of your keyword in the enriched pathways of the target RAV. If can be useful to find out how uniquely your keyword-containing pathways are represented.
findKeywordInRAV(RAVmodel, keyword, ind, n = NULL, includeTotal = TRUE)
PCAGenomicSignatures-object.
A character vector. If you are searching for multiple keywords
at the same time, use paste
with collapse="|"
argument.
An integer. The RAV number you want to check.
An integer. The number of top enriched pathways (based on abs(NES))
to search. Under default (NULL
), all the enriched pathways are used.
Under the default condition (TRUE
), the total
number of enriched pathways will be also printed out as a part of the output.
A character containing the rank of keyword-containing pathways (separated by |), followed by the total number of enriched pathways in parenthesis.
data(miniRAVmodel)
findKeywordInRAV(miniRAVmodel, "Bcell", ind = 695)
#> [1] "1|2|3|4|5|6|8 (out of 9)"