R/makeEmissionFUN.R

makeEmissionFUN <-
function (errorRate = 0.01) 
  {
    E <- log(errorRate)
    E2 <- log(1 - errorRate)
    E3 <- log(0.5)
    function(h, x, n) {
      if (h != 3) 
        return(ifelse(h == x, E2, E))
      else return(n * E3)
    }
  }

Try the MPR.genotyping package in your browser

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

MPR.genotyping documentation built on May 2, 2019, 3:26 a.m.