statmod (version 1.0.2)

sage.test: Compare Two SAGE Libraries

Description

Compute a p-values for differential expression for each tag between two SAGE libraries.

Usage

sage.test(x, y, n1=sum(x), n2=sum(y))

Arguments

x
integer vector giving counts in first library
y
integer vector giving counts in second library
n1
total number of tags in first library
n2
total number of tags in second library

Value

  • Numeric vector of p-values.

Details

This function uses a binomial approximation to the Fisher Exact test for each tag. This will be accurate when the total number of tags is large.

See Also

fisher.test2, fisher.test

Examples

Run this code
sage.test(c(0,5,10),c(0,30,50),n1=10000,n2=15000)

Run the code above in your browser using DataCamp Workspace