Description Usage Arguments Examples
View source: R/kwd_enrichment_multi.R
Reads multiple category identifiers and performes a keyword enrichment
for each combination of test/background group (see kwd_enrichment
).
The output is a list of tables.
1 2 | kwd_enrichment_multi(x, categories, test_keywords, grouping_col,
keywords_col = "keywords", padj_method = "BH")
|
x |
A dataframe with the values. |
categories |
A character vector containing the categories that will be tested. |
test_keywords |
A caracter vector with the keywords to be tested. |
grouping_col |
A character string matching exactly the column of the dataframe |
keywords_col |
A character string matching exactly the column of the dataframe |
padj_method |
Method to adjust the p-values of the enrichment test (Fisher exact test).
See |
1 2 3 4 5 6 7 8 9 10 11 | test_keywords <- c("protease",
"solute binding protein",
"oxidoreductase",
"transport",
"virulence")
categories <- c("stable", "decreasing", "increasing")
category_comparison <- kwd_enrichment_multi(x = merged_data,
categories = categories,
grouping_col = "Grouping_col",
test_keywords = test_keywords)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.