deg_def: A DEG definition function

Description Usage Arguments Value Examples

View source: R/def_deg.R

Description

This function creates a new variable indicating DEGs as -1, 0, 1 based on the user-defined foldchange and p-value criteria

Usage

1
deg_def(diffexp, pcriteria, foldchangecol, pv, fc)

Arguments

diffexp

data.frame/data.table with differential expression results

pcriteria

column name of the pvalue variable <strings>

foldchangecol

column name of the foldchange variable <string>

pv

pvalue threshold <double>

fc

foldchange threshold <double>

Value

data.table/data.frame with a new deg variable

Examples

1
2
3
data(diffexplist)
diffexp <- deg_def(diffexplist[[1]], "pvalue", "Log2FC", 0.05, 0)
table(diffexp[['deg']])

csbl-usp/MetaVolcanoR documentation built on Nov. 8, 2019, 8:53 p.m.