Switch to unified view

a b/R/cleanMetadata.GSE56315.R
1
#' @rdname cleanMetadata
2
#' @details
3
#'    GSE56315:\cr
4
#'    The cleanup of GSE56315 (CHEPRETRO) adds two batches corresponding to each
5
#'    clinical samples and normal sorted tissues both on platform
6
#'    HG-U133 plus 2.
7
#' @export
8
cleanMetadata.GSE56315 <- function(meta_data) {
9
  message("Cleaning GSE56315 (CHEPRETRO)!")
10
11
  # Generic clean
12
  suppressMessages(meta_data <- cleanMetadata.data.frame(meta_data))
13
14
  # Added factor describing the batches and CEL files
15
  tmp <- as.character(meta_data$characteristics_ch1)
16
  tmp <- ifelse(tmp == "tissue: human healthy tonsils", "tonsil", "DLBCL")
17
  meta_data$Batch <- factor(tmp)
18
  meta_data$CEL <-
19
    gsub("^.+/(GSM[0-9]+)\\..+$", "\\1", meta_data$supplementary_file)
20
  meta_data$GSM <- as.character(meta_data$geo_accession)
21
  # rownames(meta_data) <- meta_data$CEL
22
23
  return(meta_data)
24
}