R/maf.R

maf<-function(data){
  p<-colMeans(data)/2
  p[p>0.5]<-1-p[p>0.5]
  result.maf<-p
  return(result.maf)
}

Try the zfa package in your browser

Any scripts or data that you put into this service are public.

zfa documentation built on May 2, 2019, 10:24 a.m.