Affymetrix Facility Documentation
 
Affy Facility Docs Home
Running Chips
Pricing
Sample Submission
SBEAMS
Download Data
Annotate Samples
GetExpression
Get Affy Intensity
Analize Data
Analysis Pipeline
MEV
Affy Help Pages
Affy Core Help
SBEAMS Help Pages
Analysis Help Pages
Tutorials and Presentations
Other Resources
Affymetrix Home Page

R_CHP Production

Convert an Affy CEL file into Affymetrix like Mas5.0 signal and detection calls using R/Bioconductor This is the same method used to produce the data which is loaded into SBEAMS. Please note that these files can also be downloaded from SBEAMS.


pmoss
Obtain CEL files:

1)Log in to SBEAMS/Microarray
2)Choose the 'Project Home' button on the left side of the screen
3)Choose the 'Data Download' tab along the top of the page
4)Make sure you have the appropriate project selected in the project chooser drop-down on the top of the page--you should see your Affy chips listed on the page
5)Check the box under CEL for each chip you'd like to analyze
6)Click the 'GET_AFFY_ARRAY_FILES' button underneath the chip listing, and save these somewhere on your computer.
7)Unzip the downloaded file to get the actual CEL files.
Open Link
Use the following steps to set up and run R/Bioconductor:

1)R can be downloaded from
2)Bioconductor packages can be installed by running within R:

source("http://www.bioconductor.org/getBioC.R")
getBioC()
3)Use the following code to load in a CEL file and export a datafile plus a image of the array. Please note that you will have to supply path names for the variable $cel_file, $out_R_CHP_file, $out_chip_image.

switch(.Platform$OS.type, unix = .libPaths("/net/arrays/Affymetrix/bioconductor/library/"),"windows")
	.libPaths("$R_library")
library(affy)
cel.file.name    <- c("$cel_file")
output.file.name <- c("$out_R_CHP_file")
data <- ReadAffy(filenames =  cel.file.name)

eset <- mas5(data,sc=250)
PACalls <- mas5calls(data,alpha1=0.05,alpha2=0.065)

Matrix <- exprs(eset)
output <- cbind(row.names(Matrix),Matrix,exprs(PACalls),se.exprs(PACalls))
headings <- c("Probesets","MAS5_Signal","MAS5_Detection_calls", "MAS5_Detection_p-value")
write.table(output,file=output.file.name,sep="\\t",col.names = headings,row.names=FALSE)



jpeg("$out_chip_image", width=1000, height=1000)
image( data[,1] )
dev.off()
END