R/apply.ldf.R

apply.ldf <-
function (full.signal, posterior) 
{
    posterior <- posterior[dimnames(full.signal)[[1]], ]
    if (sum(dimnames(full.signal[[1]]) != dimnames(posterior)[[1]]) > 
        0) 
        stop("Names are not matching")
    can <- cancor(x = full.signal, y = posterior)
    ldf <- as.numeric(full.signal %*% can$xcoef[, 1])
    return(ldf/sd(ldf))
}

Try the CNVtools package in your browser

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

CNVtools documentation built on April 28, 2020, 6:06 p.m.