R/conv.R

Defines functions plotNet printNet

Documented in plotNet printNet

plotNet <- function
(object
 ) {
  plotDendroAndColors(dendro=pepTree(object), colors=mergedColors(object), dendroLabels=F)
}


printNet <- function(object) {
  cat("Network Name: ", networkName(object), "\n")
  cat("  Number of samples : ", length(samples(object)), "\n")
  cat("  Number of peptides: ", length(peptides(object)), "\n")
  cat("  Number of modules : ", length(unique(mergedColors(object))), "\n")
  cat("  Power used        : ", networkPower(object), "\n")
  cat("  Network Type      : ", networkType(object), "\n")
  cat("  ProCoNA version   : ", proconaVersion(object), "\n")
}
 

setMethod('show', 'proconaNet', 
          function(object){
              printNet(object)
          })

Try the ProCoNA package in your browser

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

ProCoNA documentation built on Nov. 1, 2018, 3:28 a.m.