R/meiose.R

Defines functions meiose

meiose <- function(i, indices.fam, indices.haplotypes, haplotypes.perm)
{
    if (runif(1) > 0.5) {
        return(haplotypes.perm[indices.fam[i, 1], indices.haplotypes])
    } else {
        return(haplotypes.perm[indices.fam[i, 2], indices.haplotypes])
    }
}

Try the RVPedigree package in your browser

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

RVPedigree documentation built on May 29, 2017, 10:19 p.m.