View source: R/tr_test_enrichment.R
tr_test_enrichment | R Documentation |
Performs Fisher's Exact test to determine enrichment of a set of
genes of interest compared to some list of experimentally derived genes.
Uses alternative = "greater"
in the call to fisher.test()
.
tr_test_enrichment(query_set, enrichment_set, total_genes)
query_set |
List of experimentally or otherwise derived genes, in which one wishes to test for enrichment |
enrichment_set |
Set of genes of interest, such as virulence genes |
total_genes |
Total number of genes for the organism/species |
Numeric: the raw p-value from fisher.test()
?stats::fisher.test
https://www.github.com/travis-m-blimkie/tRavis
all_genes <- paste0("gene", sample(1:10000, 5000))
de_genes <- sample(all_genes, 1500)
ex_set <- sample(all_genes, 100)
tr_test_enrichment(
query_set = de_genes,
enrichment_set = ex_set,
total_genes = 5000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.