runConsensusAnalysis: Perform Consensus Analysis

View source: R/consensus-analysis.R

runConsensusAnalysisR Documentation

Perform Consensus Analysis

Description

This function performs consensus analysis using two methods. These methods are weighted.mean and RRA.

Usage

runConsensusAnalysis(
  PAResults,
  method = c("weightedZMean", "RRA"),
  weightsList = NULL,
  useFDR = TRUE,
  rank.by = c("normalizedScore", "pFDR", "both"),
  backgroundSpace = NULL
)

Arguments

PAResults

A list of at least length two from enrichment analysis results.

method

The consensus analsyis method. This can be either weighted.mean or RRA.

weightsList

A vector of integer values. Each element shows the corresponding input result weight. When selected method is weighted.mean this parameter needs to be specified. If it is null all the weights are considered as equal.

useFDR

A logical parameter, indicating if adjusted p-values should be used.

rank.by

An string parameter which specifies how the input results should be ranked. This parameter is used when the selected method is RRA.

backgroundSpace

A list of lists with the same length as PAResults. Each list contains underlying space (set of pathways) for each input dataframe in PAResults. This parameter is optional. NULL means all input dataframes share a common space. So the union pathways of all input dataframes is taken into account.

Value

A dataframe of consensus analysis result, which contains the following columns:

  • ID: The ID of pathway

  • p.value: The p-value of pathway

  • pFDR: The adjusted p-value using Benjamini-Hochberg method

  • name: The name of pathway

  • pathwaySize: The size of pathway

Examples



library(RCPA)

affyFgseaResult <- loadData("affyFgseaResult")
agilFgseaResult <- loadData("agilFgseaResult")
RNASeqFgseaResult <- loadData("RNASeqFgseaResult")

consensusPAResult <- RCPA::runConsensusAnalysis(
    list(affyFgseaResult, agilFgseaResult, RNASeqFgseaResult),
    method = "weightedZMean"
)

print(head(consensusPAResult))



RCPA documentation built on Nov. 21, 2023, 5:08 p.m.