multi_pval2zlist: Convert multiple columns of p-values to list of named and...

View source: R/multi_pval2zlist.R

multi_pval2zlistR Documentation

Convert multiple columns of p-values to list of named and sorted Z-scores

Description

Convert multiple columns (from a table-like object) of p-values from two-sided tests to list of named and sorted Z-scores.

Usage

multi_pval2zlist(
  tab,
  prefix.v = NULL,
  p.suffix = "p",
  direction.suffix = "logFC",
  sort = TRUE,
  decreasing = TRUE,
  nm = rownames(tab)
)

Arguments

tab

Table of output from ezlimma.

prefix.v

A vector of prefixes that prefix .p, .FDR, or .logFC in colnames(tab). These will be the columns that are used in the Venn diagram. If NULL these are inferred from colnames(tab) that end with .p.

p.suffix

The suffix of p-value columns, i.e. the character string after the period "."

direction.suffix

The suffix of direction columns such as log fold-change, regression slope, correlation coefficient, or the "Up/Down" values

sort

Logical. Should the Z-scores be sorted?

decreasing

Logical. Should the sort be increasing or decreasing?

nm

Names of the Zscores.

Value

List of Z-scores.


jdreyf/jdcbioinfo documentation built on April 15, 2024, 6:37 p.m.