Created
September 11, 2018 02:51
-
-
Save wenjie1991/769583ac36952dc323463a2fe9b2df41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## download and install package | |
# source("http://bioconductor.org/biocLite.R") | |
# biocLite("oligo") | |
library(oligo) | |
## read cel files | |
dir <- tcltk::tk_choose.dir(caption = "Please choose input fold contain cel") | |
raw <- list.celfiles(dir, full.names=TRUE) | |
affyGeneFS <- read.celfiles(raw) | |
## apply normalization | |
norm <- rma(affyGeneFS, target = "probeset") | |
## wrtie expression data into file named "normalized.xls" | |
write.table(exprs(norm), file = "normalized.xls", sep = "\t", quote = F) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment