R/print.LOY.R

Defines functions print.LOY

#' @export
print.LOY <- function(x, method="MADloy", ...) {
  
  if (method=="MADloy")
    data <- x$res$MADloy
  else if (method=="Fosberg")
    data <- x$res$Fosberg
  else
    stop("method should be either 'MADloy' or 'Fosberg'")
       
  cat("\n")
  cat("Object of class LOY \n")
  cat("---------------------------- \n")
  cat("Number of normal samples:", sum(data == "normal", 
                                       na.rm=TRUE), "\n")
  cat("Number of LOY:", sum(data == "LOY", 
                            na.rm=TRUE), "\n")
  cat("Number of XYY:", sum(data == "XYY", 
                            na.rm=TRUE), "\n")
  cat("Number of samples do not pass QC:", sum(is.na(data)))
  cat("\n")
}
isglobal-brge/MADloy documentation built on March 3, 2024, 7:27 p.m.