Last data update: 2014.03.03

R: Compute the significance of the overlap between two lists
pvalRRHOR Documentation

Compute the significance of the overlap between two lists

Description

Computes the significance of the agreements between lists as returned by RRHO using resampling.

Usage

pvalRRHO(RRHO.obj, replications, stepsize=RRHO.obj$stepsize, FUN= max)

Arguments

RRHO.obj

The output object of the RRHO function.

replications

The number of samples to be taken from the distribution of the aggregated test statistic.

stepsize

Controls the resolution of the test: how many items between any two overlap tests (i.e., netween any two i-s and two j-s.)

FUN

The function aggregating infomation from the whole overlap matrix into one summary statistic. Typically the min pvalue, or max on -log(pval) scale.

Details

The distribution of FUN(-log(pval)) is computed using resampling.

The aggregating function will typically be the max function, corresponding to the maximal -log(pvalue), i.e., the most significant agreement over all sublists.

The distribution is computed by resampling pairs of null sequences, computing the significances of all the overlaps as done in the reference, applying the aggregating function supplied by the user, and returning the permutation based significance.

Value

pval

The FWER corrected significance of observed aggregated pvalue.

FUN.ecdf

The simulated sampling distribution of the aggregated pvalues.

FUN

The matrix aggregation function used. typicall max for minimal p-value.

n.items

Length of lists.

stepsize

See RRHO

replications

The number of simulation replications.

call

The function call.

Note

Might take a long time to run. Depending on the number of replications, the item (gene) count and the stepsize.

Also note that the significance returned is a conservative value (by a constant of 1/replications).

Author(s)

Jonathan Rosenblatt

See Also

RRHO

Examples

list.length <- 100
list.names <- paste('Gene',1:list.length, sep='')
gene.list1<- data.frame(list.names, sample(list.length))
gene.list2<- data.frame(list.names, sample(list.length))
RRHO.example <-  RRHO(gene.list1, gene.list2, alternative='enrichment')
pval.testing <- pvalRRHO(RRHO.example,50) 

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RRHO)
Loading required package: grid
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/RRHO/pvalRRHO.Rd_%03d_medium.png", width=480, height=480)
> ### Name: pvalRRHO
> ### Title: Compute the significance of the overlap between two lists
> ### Aliases: pvalRRHO
> ### Keywords: htest
> 
> ### ** Examples
> 
> list.length <- 100
> list.names <- paste('Gene',1:list.length, sep='')
> gene.list1<- data.frame(list.names, sample(list.length))
> gene.list2<- data.frame(list.names, sample(list.length))
> RRHO.example <-  RRHO(gene.list1, gene.list2, alternative='enrichment')
> pval.testing <- pvalRRHO(RRHO.example,50) 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>