zplot: Plot Z-scores across biological replicates.

Description Usage Arguments Value

View source: R/plot.R

Description

Colored by a multiple hypothesis corrected false discovery rate (FDR) computed on a weighted Z-score. See README for file formats and example usage on the enrichr GitHub Repository.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
zplot(
  data,
  outfile_prefix,
  ylab,
  xlab,
  ycol,
  xcol,
  threshold,
  label_file,
  num_labels
)

Arguments

data

A data frame produced by combine_reps().

outfile_prefix

Optional. File prefix for output .png and .pdf files. Default = "output."

ylab

Text for y-axis label; should correspond to replicate #1 Z-scores.

xlab

Text for x-axis label; should correspond to replicate #2 Z-scores.

ycol

Name of column containing y-axis data; should correspond to replicate #1 Z-scores.

xcol

Name of column containing x-axis data; should correspond to replicate #1 Z-scores.

threshold

Optional. FDR threshold to color points by. One of c(90, 95, 99). Default = 5% FDR (fdr_bh <= 0.05).

label_file

Optional. Comma-separated file containing names of genes to be labeled on the plot; requires input to have an annotation column named gene_names_primary and labels must match format in the column.

num_labs

Optional. Number of annotation labels to display. Requires input to have an annotation column named gene_names_primary. Default = 0.

Value

Plot depicting replicate 1 z-score vs replicate 2 z-scores in .png and .pdf format. Colored by FDR.


rachaelcox/enrichr documentation built on Jan. 19, 2021, 2:11 p.m.