spkGNN: Genes Needed to Detect N True Positives

Description Usage Arguments Value Author(s) Examples

View source: R/spkGNN.R

Description

Computes the number of genes one would need to consider to obtain a given number of truly positive genes if one considered genes in order of decreasing observed fold change.

Usage

1
spkGNN(n, n.expr, n.unexpr, AccuracySlope, AccuracySD, nullfc)

Arguments

n

the desired number of true positives

n.expr

the actual number of truly expressed genes

n.unexpr

the actual number of truly unexpressed genes

AccuracySlope

the signal detect slope from the spkSlope function

AccuracySD

the standard deviation of the signal detect slope from the spkAccSD function

nullfc

a vector of null fold changes from the spkBox function

Value

This function returns the expected number of genes one would have to consider to obtain N true positives under the given conditions.

Author(s)

Matthew N. McCall

Examples

1
2
3
4
5
6
7
data(affy)
spkSlopeOut <- spkSlope(affy)
spkBoxOut <- spkBox(affy, spkSlopeOut, fc=2)
AccuracySlope <- round(spkSlopeOut$slope[-1], digits=2)
AccuracySD <- round(spkAccSD(affy, spkSlopeOut), digits=2)
spkGNN(n=25, n.expr=100, n.unexpr=10000, AccuracySlope[2],
AccuracySD[2], spkBoxOut[[2]])

spkTools documentation built on Nov. 8, 2020, 6:55 p.m.