analyzePairs: Finds all mutually exclusive pairs in a dataset

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

analyzePairs performs step 1 of the TiMEx procedure: tests all gene pairs for mutual exclusivity. It returns a complex list, including parameter estimates, pairwise p-values and intensities of mutual exclusivity, log likelihoods, and others.

Usage

1

Arguments

mat

binary alteration matrix, with rows representing patients and columns representing genes

Details

In the first step, the TiMEx procedure for identifying mutually exclusive groups of alterations tests all pairs for mutual exclusivity. The data corresponding to each pair of genes is therefore fitted to both the Null (Conditional Independence) and the Mutual Exclusivity models. Parameters under the two models are estimated, and, since they are nested, a likelihood ratio test is performed between the corresponding log likelihoods, in order to test whether mu (the intensity of mutual exclusivity) is different from 0. For more details on the TiMEx procedure, as well as on the underlying mathematical model, see Constantinescu et al.: TiMEx: A Waiting Time Model for Mutually Exclusive Cancer Alterations. Bioinformatics (2015).

The output list contains exhaustive information on the pairwise testing of genes, including parameter estimates, pairwise p-values and intensities of mutual exclusivity, log likelihoods, and others.

This function displays progress messages indicating the gene that is currently being tested against the remaining genes.

Value

List consisting of a set of matrices, all of dimension n x n (n being the number of genes). Element (i,j) of each matrix corresponds to the pairwise test between genes i and j:

Author(s)

Simona Cristea, scristea@jimmy.harvard.edu

References

Constantinescu et al.: TiMEx: A Waiting Time Model for Mutually Exclusive Cancer Alterations. Bioinformatics (2015).

See Also

doMaxCliques for step 2 of the TiMEx procedure; findSignifCliques for step 3 of the TiMEx procedure; the wrapper function TiMEx for combining these three steps, and identifying mutually exclusive groups in a binary dataset with the TiMEx model.

Examples

1
2
3
4
# Test all pairs from the ovarian dataset for mutual exclusivity (takes 
# approximately 5 minutes)
data(ovarian)
ovarianPairs<-analyzePairs(ovarian)

cbg-ethz/TiMEx documentation built on May 13, 2019, 1:50 p.m.