R/WriteMCL.R

Defines functions WriteMCL

Documented in WriteMCL

#' Print analyzed matrix
#' 
#' Writes a tab separated version of the analyzed OrthoMCL data with or without the joined representative sequences
#' @param mtrx Matrix derived from AnalyzeOrthoMCL
#' @param filename File name to save final output
#' @return The path to the written file
#' @examples
#' 
#' \dontrun{
#' WriteMCL(mcl_mtrx, 'matrix.tsv')
#' #mcl_mtrx previously derived from AnalyzeOrthoMCL() or join_repset()
#' }
#' @export
WriteMCL <- function(mtrx, filename) {

    write.csv(mtrx, filename, quote = F, row.names = F)

    wd <- getwd()
    file <- paste(wd, filename, sep = "/")
    cat("wrote matrix to", file, "\n")
}

Try the MAGNAMWAR package in your browser

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

MAGNAMWAR documentation built on May 2, 2019, 6:42 a.m.