bg__get_stats: Calculate Simulation Statistics

Description Usage Arguments Details Value Examples

View source: R/Simulations_Functions.R

Description

Given significant genes and a ground truth calculates the false discovery rate and false negative rate of the significance calls.

Usage

1
	bg__get_stats(sig, TP, ngenes)

Arguments

sig

vector of gene IDs/names which were called as significant by some method.

TP

vector of gene IDs/names which known to be positives (ground truth).

ngenes

number of total genes under consideration.

Details

False discovery rate (FDR) is the proportion of all genes considered significant which are not in the ground truth. False negative rate (FNR) is the proportion of all ground truth genes which are not considered significant.

Value

vector of two elements: (FDR, FNR).

Examples

1
2
3
4
#	Calls <- c(1,3,5,8,10)
#	Truth <- c(2,3,5,9)
#	total=10
#	stats <- bg__get_stats(Calls, Truth, total)

M3Drop documentation built on Nov. 8, 2020, 5:06 p.m.