Learn R Programming

pcadapt (version 1.0)

fdrCalc: False Discovery Rate

Description

fdrCalc computes the false discovery rate (FDR) for a given list of discoveries, knowing the list of the Single Nucleotide Polymorphisms (SNPs) under selection.

Usage

fdrCalc(x, list_selection)

Arguments

x
a vector of indices corresponding to the discoveries.
list_selection
a vector of indices containing the list of all the SNPs under selection.

Examples

Run this code
x <- c(1,4,5,8,9)
list_selection <- c(4,5,7,10,11)
fdrCalc(x,list_selection)

Run the code above in your browser using DataLab