adj_p: adj_p

View source: R/Tests.R

adj_pR Documentation

adj_p

Description

Function to adjust p-values for multiple testing correction.

Usage

adj_p(x, pcols, adj_method)

Arguments

x

Dataframe containing a column or columns of p-values.

pcols

A vector specifying unadjusted p-value columns in x

adj_method

P-value adjustment method. Options: "qvalue", "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none". "qvalue" calls the qvalue package. Other methods are from base R.

Details

P-values e.g. coming from differential pA site usage on individual genes/transcripts are correctd for multiple testing.

Value

A data frame containing all the original information with the vector(s) of adjusted p-values appended to the end.

Examples

fit3_pA_fdr <- adj_p(fit3_pA, pcols = 2, adj_method = "fdr")

goodarzilab/APAlog documentation built on March 25, 2022, 3:40 p.m.