## Chunk 1
![]() |
|||
library("limma")
|
|||
## Chunk 2
![]() |
|||
## dir(dataPath)
|
|||
## Chunk 3
![]() |
|||
adf = read.AnnotatedDataFrame("samplesInfo.txt",
|
|||
## Chunk 4
![]() |
|||
targets = pData(adf)
|
|||
## Chunk 5
![]() |
|||
RG = read.maimages(targets, path=dataPath, source="genepix")
|
|||
## Chunk 6
![]() |
|||
head(RG$genes)
|
|||
## Chunk 7
![]() |
|||
par(mfrow=c(5,1))
|
|||
## Chunk 8
![]() |
|||
MA = normalizeWithinArrays(RG, method="none",
|
|||
## Chunk 9
![]() |
|||
library("geneplotter")
|
|||
## Chunk 10
![]() |
|||
plotformula = log2(RG$G)~col(RG$G)
|
|||
## Chunk 11
![]() |
|||
multidensity(plotformula, xlim=c(5,9),
|
|||
## Chunk 12
![]() |
|||
rin = with(MA$targets, ifelse(Cy5=="CCl4", RIN.Cy5,
|
|||
## Chunk 13
![]() |
|||
## library("vsn")
|
|||
## Chunk 14
![]() |
|||
library("vsn")
|
|||
## Chunk 15
![]() |
|||
ccl4 = justvsn(RGgood, backgroundsubtract=TRUE)
|
|||
## Chunk 16
![]() |
|||
r = assayData(ccl4)$R
|
|||
## Chunk 17
![]() |
|||
rownames(pData(adfgood)) = sub("\\.gpr$", "",
|
|||
## Chunk 18
![]() |
|||
varMetadata(adfgood)$channel = factor(c("G", "R", "G", "R"),
|
|||
## Chunk 19
![]() |
|||
phenoData(ccl4) = adfgood
|
|||
## Chunk 20
![]() |
|||
ccl4AM = ccl4
|
|||
## Chunk 21
![]() |
|||
varMetadata(phenoData(ccl4AM))$channel[] = "_ALL_"
|
|||
## Chunk 22
![]() |
|||
## smoothScatter(assayData(ccl4AM)$A[,2],
|
|||
## Chunk 23
![]() |
|||
design = modelMatrix(pData(ccl4AM), ref="DMSO")
|
|||
## Chunk 24
![]() |
|||
fit = lmFit(assayData(ccl4AM)$M, design)
|
|||
## Chunk 25
![]() |
|||
fit = eBayes(fit)
|
|||
## Chunk 26
![]() |
|||
class(fit)
|
|||
## Chunk 27
![]() |
|||
hist(fit$p.value, 1000)
|
|||
## Chunk 28
![]() |
|||
fit$genes = pData(featureData(ccl4AM))
|
|||
## Chunk 29
![]() |
|||
plot(fit$coefficients, -log10(fit$p.value), pch=".")
|
|||
## Chunk 30
![]() |
|||
## write.fit(fit, file="fit.tab")
|
|||