R/getmafmat.R

Defines functions getmafmat

getmafmat <- function(mat) {
  nsnp <- dim(mat)[2]
  var_maf <- sapply(1:nsnp, function(i) min(getAlleleFrequencies(mat[, i])))
  return(var_maf)
}
yhai943/BLMM documentation built on Nov. 12, 2021, 6:37 a.m.