R/c3net.wrap.R

Defines functions c3net.wrap

Documented in c3net.wrap

c3net.wrap <- function(data){
    mim <- c3net::makemim(t(data))
    ccc <- mim[upper.tri(mim)]
    ccc <- ccc[ccc != 0] #diagonal removed
    ccc <- abs(ccc)
    x <- sort(ccc, decreasing=T)
    a<- nrow(mim)
    a<- a*(a-1)/2
    RNratio <- round(0.02*a)
    cutoff <- x[RNratio]
    net <- c3net::c3net(t(data),cutoffMI=cutoff)
    return(net);
}

Try the netbenchmark package in your browser

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

netbenchmark documentation built on April 28, 2020, 7 p.m.