Learn R Programming

dnapath (version 0.7.6)

rev.dnapath_list: Reverse the order of pathways in a 'dnapath_list' object.

Description

Reverse the order of pathways in a 'dnapath_list' object.

Usage

# S3 method for dnapath_list
rev(x, ...)

Value

A 'dnapath_list' object containing the pathways in 'x' in reverse order.

Arguments

x

A 'dnapath_list' object from dnapath.

...

Additional arguments are ignored.

Examples

Run this code
data(meso)
data(p53_pathways)
set.seed(0)
results <- dnapath(x = meso$gene_expression, pathway_list = p53_pathways,
                   group_labels = meso$groups, n_perm = 10)
# Filter out pathways that have p-values above 0.2.
results <- filter_pathways(results, 0.2) 
results <- sort(results, by = "dc_score") # Sort by the pathway DC score.
results <- rev(results) # Reverse the ordering.

Run the code above in your browser using DataLab