top_deg: Choose top genes from DEG data frame

View source: R/utils.R

top_degR Documentation

Choose top genes from DEG data frame

Description

For example, if top = 50, head 50 and tail 50 will return from a ordered DEG data frame after filtering by threshold value of P value

Usage

top_deg(deg_data, x, y, top, cut_P = 0.05)

Arguments

deg_data

a DEG data frame contains logFC and p value

x

which column is log FC

y

which column is P value

top

a single number or a length of 2 numeric vector, if 2 numeric vector, first one is top max logFC.

cut_P

a single number for threshold value of P value

Value

a character vector of top genes

Examples

top_deg(DEG_df, x = "log2FoldChange", y = "pvalue", 50, 0.05)

xiayh17/RNAseqStat documentation built on June 16, 2022, 11:51 a.m.