Pval_function {GWAS.BAYES}R Documentation

Pval_function

Description

Performs multiple comparison corrections on p-values and returns significant SNP's. This is used internally for the preselection function.

Usage

Pval_function(p_vals,n,thresh,control)

Arguments

p_vals

A vector of p-values calculated by the preselection function.

n

The original number of SNPs

thresh

The type 1 error rate

control

The multiple comparison correction one would like to apply.

Value

The results are formated as a data.frame with the column Significant being 1 or 0 depending on if the SNP was significant (1 for significant). The P_values column will be the p-values that were calculated for each SNP.


[Package GWAS.BAYES version 1.0.0 Index]