Learn R Programming

TransProR (version 1.0.2)

prep_deseq2: 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)

Value

A data frame with processed DESeq2 DEG data.

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.

Examples

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

Run the code above in your browser using DataLab