-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPreprocess.R
More file actions
40 lines (33 loc) · 1.18 KB
/
Preprocess.R
File metadata and controls
40 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Preprocess <- function(iStart,iEnd,Path,Overwrite){
# Processing all KD data
setwd(Path)
suppressMessages(library(preprocessCore))
suppressMessages(library(stats))
suppressMessages(library(prada))
source("Util.R")
# Files & Directories:
# ../Annotation/bead_gene_map.csv
# ../Annotation/HG_U133A.chip
# ../Annotation/plate_maps.csv
# ../Annotation/plate_list.csv
# ../Output/dataName.csv
# ../Output/dataName.gct
## ifBead2Gene <- "../Annotation/bead_gene_map.csv"
## ifU133A <- "../Annotation/HG_U133A.chip"
## ifPlateMap <- "../Annotation/plate_maps.csv"
## ifPlateList <- "../Annotation/plate_list.csv"
## Bead2Gene <- read.csv(ifBead2Gene, header = TRUE, stringsAsFactors = FALSE)
## PlateMap <- read.csv(ifPlateMap, header = TRUE, stringsAsFactors = FALSE)
## U133A <- read.delim(ifU133A, header = TRUE, stringsAsFactors = FALSE)
## rownames(U133A) <- U133A$pr_id
if (!file.exists("lstNames.RData")){
cat("Please save all the data to lstNames.Data first!\n")
}
load(file = "lstNames.RData")
for (DataName in lstNames[iStart:iEnd]){
LXB2Stats(DataName,Overwrite)
}
for (DataName in lstNames[iStart:iEnd]){
Stats2gct(DataName,Overwrite)
}
}