Pval_function {GWAS.BAYES} | R Documentation |
Performs multiple comparison corrections on p-values and returns significant SNP's. This is used internally for the preselection function.
Pval_function(p_vals,n,thresh,control)
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. |
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.