densityEstimate: Observed versus Expected Ratios

Description Usage Arguments Value Author(s) Examples

View source: R/omnibusTest-functions.R

Description

Function to calculate the ratio of genes that characterize a phenotype (observed) among the genes that characterize a biological complex versus the ratio of a set of randomly sampled genes (expected) among the genes that characterize a biological complex.

Usage

1
densityEstimate(genename,interactome,perm)

Arguments

genename

Character vector of the gene names that characterize a specific phenotype.

interactome

Contingency matrix of genes (rows) and biological complexes (columns) (see package ScISI)

perm

Numeric vector indicating the number of simulations to run to compute the expected ratios.

Value

List of observed and simulated ratios.

Author(s)

N. LeMeur

Examples

1
2
3
4
5
 data(ScISI)
 data(essglist)
 essential <- names(essglist)
 ScISI <- as.matrix(ScISI)
  ratio<- densityEstimate(genename=essential,interactome=ScISI,perm=50)

PCpheno documentation built on Nov. 8, 2020, 5:10 p.m.