Learn R Programming

SLGI (version 1.32.0)

compare: Compare observed data to expected in permutation models

Description

This method summarizes the result of the modelSLGI function.

Usage

"compare"(x)

Arguments

x
a siResult object to summarize

Value

Numerical vector

Details

This compares the number of observed interactions to the number of expected interactions in each permutation model. It counts how many times the number of observed interactions is greater than the number of expected interactions (from the permutations) and divides by the number of permutations applied.

See Also

modelSLGI

Examples

Run this code
data(ScISIC)
data(Atong)
data(SGA)
model <-  modelSLGI(Atong, universe= SGA, interactome=ScISIC, type="intM", perm=2)
ans <- compare(model)

Run the code above in your browser using DataLab