prep_deseq2: Prepare DESeq2 data for plotting

View source: R/PrepDeseq2.R

prep_deseq2R Documentation

Prepare DESeq2 data for plotting

Description

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

Usage

prep_deseq2(input_path, output_name = NULL)

Arguments

input_path

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

output_name

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

Value

A data frame with processed DESeq2 DEG data.

Examples

deseq2_file <- system.file("extdata",
                           "DEG_deseq2_test.rds",
                           package = "TransProR")
deseq2 <- prep_deseq2(deseq2_file)


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