Skip to content

Instantly share code, notes, and snippets.

@wenjie1991
Created September 11, 2018 02:51
Show Gist options
  • Save wenjie1991/769583ac36952dc323463a2fe9b2df41 to your computer and use it in GitHub Desktop.
Save wenjie1991/769583ac36952dc323463a2fe9b2df41 to your computer and use it in GitHub Desktop.
## 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