View source: R/EnrichSquare.R View source: R/.ipynb_checkpoints/EnrichSquare-checkpoint.R
EnrichSquare | R Documentation |
Do enrichment analysis for selected treatment related genes in 9-squares
EnrichSquare(
beta,
id = "GeneID",
keytype = "Entrez",
x = "Control",
y = "Treatment",
enrich_method = "ORT",
top = 5,
limit = c(2, 100),
filename = NULL,
out.dir = ".",
width = 6.5,
height = 4,
verbose = TRUE,
...
)
beta |
Data frame, with columns of "GeneID", "group", and "Diff". |
id |
A character, indicating the gene column in the data. |
keytype |
A character, "Symbol" or "Entrez". |
x |
A character, indicating the x-axis in the 9-square scatter plot. |
y |
A character, indicating the y-axis in the 9-square scatter plot. |
enrich_method |
One of "ORT"(Over-Representing Test) and "HGT"(HyperGemetric test). |
top |
An integer, specifying the number of pathways to show. |
limit |
A two-length vector, specifying the min and max size of pathways for enrichent analysis. |
filename |
Suffix of output file name. NULL(default) means no output. |
out.dir |
Path to save plot to (combined with filename). |
width |
As in ggsave. |
height |
As in ggsave. |
verbose |
Boolean. |
... |
Other available parameters in ggsave. |
A list containing enrichment results for each group genes. Each item in the returned list has two sub items:
gridPlot |
an object created by |
enrichRes |
a enrichResult instance. |
Wubing Zhang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.