Learn R Programming

TransProR (version 1.0.2)

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

Value

A data frame with processed Wilcoxon DEG data.

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.

Examples

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

Run the code above in your browser using DataLab