View source: R/genesFromRandomPathways.R
genesFromRandomPathways | R Documentation |
This function first randomly selects a number (np) of pathways, then randomly selects a number (ng) of genes that are associated with at least one of the selected pathways. The function can be used to compare Sigora's performance to traditional overrepresentation tests.
genesFromRandomPathways(GPSrepo, np, ng)
GPSrepo |
A signature repository (created by ..) or one of the precompiled options. |
np |
How many pathways to select. |
ng |
Number of genes to be selected. |
selectedPathways |
A vector containing the "np" originally selected pathways. |
genes |
A vector containing the "ng" selected genes from selectedPathways. |
Foroushani AB, Brinkman FS and Lynn DJ (2013).“Pathway-GPS and SIGORA: identifying relevant pathways based on the over-representation of their gene-pair signatures.”PeerJ, 1
sigora-package
data('kegH') ## select 50 genes from 3 human KEGG pathways seed=1234 set.seed(seed) a1 <- genesFromRandomPathways(kegH,3,50) ## originally selected pathways: a1[["selectedPathways"]] ## what are the genes a1[["genes"]] ## sigora's results sigoraRes <- sigora(GPSrepo =kegH, queryList = a1[["genes"]], level = 4) ## compare to traditional methods results: oraRes <- ora(a1[["genes"]],kegH) dim(oraRes) oraRes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.