R/run_bc3net.R

Defines functions run_bc3net

Documented in run_bc3net

# install.packages("bc3net")


#' Wrapper for BC3Net method
#' 
#' Conducts co-expression analysis using BC3Net
#' @param x The n by p matrix of counts.
#' @return A p by p matrix of association scores.
#' @export
run_bc3net <- function(x, method = "spearman", alpha = 0.05, ...) {
  scores <- bc3net::bc3net(t(x), alpha1 = alpha, alpha2 = alpha, 
                           estimator = method, igraph = FALSE)
  
  colnames(scores) <- colnames(x)
  rownames(scores) <- NULL
  
  return(scores)
}
tgrimes/dnapath2 documentation built on May 21, 2020, 5:53 p.m.