R/make.loc.right.s

"make.loc.right"<-
    function(marker.frame, marker.distances)
{
    ncm <- ncol(marker.frame)
    nrm <- nrow(marker.frame)
    res <- matrix(0, nrow = nrm, ncol = ncm)
    dimnames(res) <- list(NULL, names(marker.frame))
    init <- rep(ncm, nrm)
    for(i in rev(1:ncm)) {
        is.terminal <-
            if(i < ncm && marker.distances[i] == 0)
                rep(TRUE, nrm)
            else
                !is.na(marker.frame[, i])
        init[is.terminal] <- i
        res[, i] <- init
    }
    res
}

Try the bqtl package in your browser

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

bqtl documentation built on Sept. 8, 2023, 5:44 p.m.