Switch to unified view

a b/R/cleanMetadata.GSE11318.R
1
#' @rdname cleanMetadata
2
#' @details
3
#'    GSE11318:\cr
4
#'    The cleanup of GSE11318 (NCI) adds the batch corresponding to
5
#'    platform GPL570 (HG-U133 plus 2) and excludes the GPL6400 samples.
6
#' @export
7
cleanMetadata.GSE11318 <- function(meta_data) {
8
  message("Cleaning GSE34171 (NCI)!")
9
10
  # Generic clean
11
  suppressMessages(meta_data <- cleanMetadata.data.frame(meta_data))
12
13
  # Added factor describing the batches and CEL files
14
  meta_data$Batch <- factor(meta_data$platform_id,
15
                            levels = c("GPL570", NA))
16
  meta_data$CEL <-
17
    gsub("^.+/(GSM[0-9]+)\\..+$", "\\1", meta_data$supplementary_file)
18
  meta_data$GSM <- as.character(meta_data$geo_accession)
19
  rownames(meta_data) <- meta_data$CEL
20
21
  return(meta_data)
22
}