Identifies SNPs with genotype frequencies below a minimum threshold.
check.snp.mgf(snp.summary, min.mgf)
Arguments
- snp.summary
Data frame with columns `P.AA`, `P.AB`, `P.BB`.
- min.mgf
Minimum genotype frequency allowed.
Value
Character vector with SNP names below threshold. Returns `NULL` if none.
Examples
df <- data.frame(P.AA = c(0.01, 0.5), P.AB = c(0.02, 0.4), P.BB = c(0.01, 0.1))
rownames(df) <- c("SNP1", "SNP2")
check.snp.mgf(df, 0.05)
#> [1] "SNP1"