prep_wilcoxon: Prepare Wilcoxon DEG data for plotting

View source: R/PrepWilcoxon.R

prep_wilcoxonR Documentation

Prepare Wilcoxon DEG data for plotting

Description

This function reads a Wilcoxon DEG data frame from an RDS file, filters it using deg_filter function, 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_wilcoxon(input_path, output_name = NULL)

Arguments

input_path

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

output_name

Optional; name for the processed data frame, also used as the RDS file name. If not provided, the data frame will not be saved to file.

Value

A data frame with processed Wilcoxon DEG data.

Examples

wilcoxon_file <- system.file("extdata",
                             "Wilcoxon_rank_sum_testoutRst_test.rds",
                             package = "TransProR")
Wilcoxon <- prep_wilcoxon(wilcoxon_file)


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