p.matrix: Assembles a matrix of nominal or adjusted pvalues from a...

View source: R/SparrowResult-methods.R

p.matrixR Documentation

Assembles a matrix of nominal or adjusted pvalues from a sparrow::seas result

Description

You might want a matrix of pvalues (or FDRs) for the gene sets across all GSEA methods you tried. I think I did, once, so here it is.

Usage

p.matrix(
  x,
  names = resultNames(x),
  pcol = c("padj", "padj.by.collection", "pval")
)

Arguments

x

A SparrowResult() object.

names

the entries from resultNames(x) that you want to include in the matrix. By default we take all of them.

pcol

The name of the column in logFC(x) where the type of pvalues are that we are collection. Pick on of "padj", "padj.by.collection", or "pval"

Value

A matrix of the desired pvalues for all genesets

Examples

mg <- exampleSparrowResult()
pm <- p.matrix(mg)

lianos/sparrow documentation built on Nov. 22, 2024, 11:23 p.m.