R/print.svatrain.R

Defines functions print.svatrain

Documented in print.svatrain

print.svatrain <-
function(x, ...) {

  cat("'SVA'-adjusted training data with information for addon batch effect adjustment.", "\n")
  cat(paste("Number of batches: ", x$nbatches, sep=""), "\n")
  cat(paste("Number(s) of observations (within each batch): ", paste(as.vector(table(x$batch)), collapse=", "), sep=""), "\n")
  cat(paste("Number of variables: ", ncol(x$xadj), sep=""), "\n")
  cat(paste("Number of factors: ", x$svobj$n.sv, sep=""), "\n")
  
}

Try the bapred package in your browser

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

bapred documentation built on June 22, 2022, 9:08 a.m.