R/GSEA.Gct2Frame.R

Defines functions GSEA.Gct2Frame

Documented in GSEA.Gct2Frame

#' Reads .GCT file into a data frame for processing
#'
#' `GSEA.Gct2Frame` is a wrapper for `read.table` with specified parameters for reading in a .GCT file
#'
#' Internal `GSEA` function.
#'
#' @keywords internal
#'

GSEA.Gct2Frame <- function(filename = "NULL") {
 ds <- read.table(filename, sep = "\t", comment.char = "", quote = "", stringsAsFactors = FALSE, 
  fill = TRUE, header = F)
 ds <- ds[-c(1), ]
 ds <- ds[-c(1), ]
 colnames(ds) <- ds[c(1), ]
 ds <- ds[-c(1), ]
 return(ds)
}
GSEA-MSigDB/GSEA_R documentation built on Nov. 30, 2021, 4:50 a.m.