cut_much: cut data

View source: R/utils.R

cut_muchR Documentation

cut data

Description

group data for plot DEG volcano by FDR and logFC

Usage

cut_much(
  deg_data,
  x,
  y,
  cut_FC = 1,
  cut_P = 0.05,
  label = c("Down", "Stable", "Up"),
  label_ns = "Stable"
)

Arguments

deg_data

a DEG data frame contains logFC and p value

x

which column is log FC

y

which column is P value

cut_FC

a single number character or numeric vector in threshold value of log FC

cut_P

threshold value of P value, can set for every cut_FC number in numeric vector format

label

symbol word for groups

label_ns

which group is the stable group

Value

add group column in data frame

Examples

cut_much(DEG_df, x = "log2FoldChange", y = "pvalue", cut_FC = 1,cut_P = 0.05,
label = c("Down","Stable","Up"), label_ns = "Stable")

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