baymod: Bayesian model for the ratio of observed to expected...

Description Usage Arguments Details Value Author(s) References Examples

Description

The function specifies a Bayesian model for the ratio of observed to expected probability of features to be in common. A multinomial distribution is specified on the probabilities of being significant in any combination of the experiments (e.g. if two experiments are considered, the probability of being significant in none, one and two experiments is specified) and a prior distribution is put on their parameters. The quantity of interest is the ratio of the probability that a feature is in common, to the probability that a feature is in common by chance, called R(h).

Usage

1
baymod(output.ratio, iter = 1000, dir = getwd(), conf = 95)

Arguments

output.ratio

The output object from the ratio function

iter

Number of iterations to be performed

dir

Directory for storing the plots

conf

Size of Confidence Interval

Details

It returns an object of class list with the ratio R(h) for each threshold and its quantiles specified by conf. R(h) is significant if its CI does not include 1. We consider two rules for selecting the list of genes of interest: 1) hmax is the maximum of Median(R(h)) only for the subset of credibility intervals which do not include 1; 2) h2 is the largest threshold where the number of features called in common at least doubles the number of features in common under independence (where R(h) larger than 2).

The function returns also a plot of the credibility interval for each threshold. The same plot is also saved in the directory specified by the user.

Value

A matrix and a plot with the quantiles of R(h) identified by conf for each p-value threshold.

Author(s)

Alberto Cassese, Marta Blangiardo

References

M.Blangiardo and S.Richardson (2007) Statistical tools for synthesizing lists of differentially expressed features in related experiments, Genome Biology, 8, R54.

Examples

1
2
3
4
data = simulation(n=500,GammaA=1,GammaB=1,r1=0.5,r2=0.8,DEfirst=300,
DEsecond=200,DEcommon=100)
Th<- ratio(data=data$Pval)
Rh<- baymod(iter=100,output.ratio=Th)

sdef documentation built on May 2, 2019, 8:55 a.m.