fdr2p: fdr to p

View source: R/8_plot_volcano.R

fdr2pR Documentation

fdr to p

Description

fdr to p

Usage

fdr2p(fdr)

Arguments

fdr

fdr values

Examples

# Read/Fit
   file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
   object <- read_metabolon(file)
   object %<>% fit_limma()
   pcol <- pvar(fdt(object), fit = 'limma', coef = 't3-t0')
   object %<>% extract(order(fdt(.)[[pcol]]), )
   object %<>% extract(1:10, )
   fdt(object) %<>% extract(, 1)
   object %<>% fit_limma(coefs = 't3-t0')
# fdr2p
   fdt(object)[[pcol]]
   fdt(object)[[pcol]] %>% p.adjust(method = 'fdr')
   fdt(object)[[pcol]] %>% p.adjust(method = 'fdr') %>% fdr2p()

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.