EnrichSquare: Enrichment analysis for selected treatment related genes

View source: R/EnrichSquare.R View source: R/.ipynb_checkpoints/EnrichSquare-checkpoint.R

EnrichSquareR Documentation

Enrichment analysis for selected treatment related genes

Description

Do enrichment analysis for selected treatment related genes in 9-squares

Usage

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,
  ...
)

Arguments

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.

Value

A list containing enrichment results for each group genes. Each item in the returned list has two sub items:

gridPlot

an object created by ggplot, which can be assigned and further customized.

enrichRes

a enrichResult instance.

Author(s)

Wubing Zhang


WubingZhang/MAGeCKFlute documentation built on Jan. 27, 2024, 2:43 p.m.