R/graphSumStats.R

Defines functions graphSumStats

Documented in graphSumStats

graphSumStats <- function(ISI, bait2PreyL){

    stats <- list()
    for(i in 1:ncol(ISI)){

        comp <- rownames(ISI[which(ISI[,i]==1), i ,drop=FALSE])
        stats[[i]] <- calcGraphStats(comp, bait2PreyL)
        
    }

    names(stats) = colnames(ISI)

    
    #stats <- stats[sapply(stats, function(x) !is.na(x$edgeProp))]

    stats
    
}

Try the ScISI package in your browser

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

ScISI documentation built on Nov. 8, 2020, 5:48 p.m.