-
Notifications
You must be signed in to change notification settings - Fork 0
/
X_004_X_005_createFarms.R
36 lines (28 loc) · 1.19 KB
/
X_004_X_005_createFarms.R
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
# It is expected that all cel files
# are located in the directory
# /tmp/celegans/celfiles where you have
# read permissions.
#
# The directory where the RMA log2 expression matrices
# is in the script set to /tmp/celegans/expression_matrices
# where you need to have write and read permissions
#
# You may change the directories by adapting the script
# accordingly
# cleanup workspace
rm (list= ls())
# close graphics device
graphics.off()
warnings()
#----------------------------------------------------------------------
library(affy)
library("x004ws200ws199cdf")
library("x005ws200ws199cdf")
library(farms)
setwd("/tmp/celegans/expression_matrices")
Data = ReadAffy(celfile.path = "/tmp/celegans/celfiles", cdfname = "x004ws200ws199cdf")
eset = exp.farms(Data, bgcorrect.method="none",normalize.method="quantiles", pmcorrect.method="pmonly")
write.exprs(eset, file = "expressionQuantileWithoutBackgroundNormalization_X004.txt")
Data = ReadAffy(celfile.path = "/tmp/celegans/celfiles", cdfname = "x005ws200ws199cdf")
eset = exp.farms(Data, bgcorrect.method="none",normalize.method="quantiles", pmcorrect.method="pmonly")
write.exprs(eset, file = "expressionQuantileWithoutBackgroundNormalization_X005.txt")