prep_edgeR: Prepare edgeR DEG data for plotting

View source: R/PrepEdgeR.R

prep_edgeRR Documentation

Prepare edgeR DEG data for plotting

Description

This function reads an edgeR DEG data frame from an RDS file, filters it using deg_filter function, adjusts the logFC to absolute values, adds a pseudo-count to PValue, and transforms PValue for plotting. The final data frame is returned and optionally saved to a new RDS file.

Usage

prep_edgeR(input_path, output_name = NULL)

Arguments

input_path

Path to the RDS file containing the edgeR DEG data frame.

output_name

Name for the processed data frame, also used as the RDS file name.

Value

A data frame with processed edgeR DEG data.

Examples

edgeR_file <- system.file("extdata",
                          "DEG_edgeR_test.rds",
                          package = "TransProR")
edgeR <- prep_edgeR(edgeR_file)


TransProR documentation built on April 4, 2025, 3:16 a.m.