calc_mod_ttest: Perform one-sample moderated t-test

View source: R/calc_mod_ttest.R

calc_mod_ttestR Documentation

Perform one-sample moderated t-test

Description

Use one-sample moderated t-test implemented in limma package to calculate protein logFC, pvalue, and FDR. See ?limma::lmFit and ?limma::eBayes for more details.

Usage

calc_mod_ttest(df, iter = 2000, order = T)

Arguments

df

data.frame containing gene and rep[0-9] (replicate logFC) columns.

iter

integer indicating maximum number of iterations to perform in limma::limFit().

order

boolean. Should the result be ordered by logFC and FDR?

Value

data.frame containing input df + logFC, pvalue, and FDR columns; sorted by decreasing logFC, then FDR.

Examples

## Not run: 
data("example_data")
stats_df <- calc_mod_ttest(example_data) 

## End(Not run)


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.