| 
  |||
       
       | 
  |||
       
       | 
  |||
       
       | 
  |||
| 
      
       
        
          ## Chunk 5
        
        
           
     
        
       | 
  |||
      
library("vsn")
         | 
      |||
| 
      
       
        
          ## Chunk 6
        
        
           
     
        
       | 
  |||
      
library("CCl4")
         | 
      |||
| 
      
       
        
          ## Chunk 7
        
        
           
     
        
       | 
  |||
      
## ? CCl4
          
         | 
      |||
| 
      
       
        
          ## Chunk 8
        
        
           
     
        
       | 
  |||
      
selArrays = with(pData(CCl4), 
         | 
      |||
       
       | 
  |||
       
       | 
  |||
       
       | 
  |||
       
       | 
  |||
       
       | 
  |||
| 
      
       
        
          ## Chunk 14
        
        
           
     
        
       | 
  |||
      
CCl4sn = justvsn(CCl4s, backgroundsubtract=TRUE)
         | 
      |||
| 
      
       
        
          ## Chunk 15
        
        
           
     
        
       | 
  |||
      
asd = assayData(CCl4sn)
         | 
      |||
| 
      
       
        
          ## Chunk 16
        
        
           
     
        
       | 
  |||
      
plot(A[,6], M[,6], pch='.', asp=1, xlab="A", ylab="M")
         | 
      |||
| 
      
       
        
          ## Chunk 17
        
        
           
     
        
       | 
  |||
      
smoothScatter(A[,6], M[,6], nrpoints=300, asp=1, 
         | 
      |||
| 
      
       
        
          ## Chunk 18
        
        
           
     
        
       | 
  |||
      
multidensity(M, xlim=c(-2,2), bw=0.1)
         | 
      |||
| 
      
       
        
          ## Chunk 19
        
        
           
     
        
       | 
  |||
      
meanSdPlot(cbind(assayData(CCl4sn)$R, assayData(CCl4sn)$G),
         | 
      |||
| 
      
       
        
          ## Chunk 20
        
        
           
     
        
       | 
  |||
      
kidspike = kidney
         | 
      |||
| 
      
       
        
          ## Chunk 21
        
        
           
     
        
       | 
  |||
      
ltsq = c(1, 0.8, 0.5)
         | 
      |||
| 
      
       
        
          ## Chunk 22
        
        
           
     
        
       | 
  |||
      
getMA = function(x) 
         | 
      |||
| 
      
       
        
          ## Chunk 23
        
        
           
     
        
       | 
  |||
      
for(i in seq(along=ma)) {
         | 
      |||
| 
      
       
        
          ## Chunk 24
        
        
           
     
        
       | 
  |||
      
library("lattice")
         | 
      |||
| 
      
       
        
          ## Chunk 25
        
        
           
     
        
       | 
  |||
      
normctrl = sample(which(!sel), 100)
         | 
      |||
| 
      
       
        
          ## Chunk 26
        
        
           
     
        
       | 
  |||
      
lp = xyplot(M ~ A , group=group, data=ma,  
         | 
      |||
| 
      
       
        
          ## Chunk 27
        
        
           
     
        
       | 
  |||
      
esG  = channel(CCl4s, "G")
         | 
      |||
| 
      
       
        
          ## Chunk 28
        
        
           
     
        
       | 
  |||
      
nesG = justvsn(esG)
          
         | 
      |||
| 
      
       
        
          ## Chunk 29
        
        
           
     
        
       | 
  |||
      
library("RColorBrewer")
         | 
      |||
| 
      
       
        
          ## Chunk 30
        
        
           
     
        
       | 
  |||
      
multiecdf(exprs(nesG), col=colors, 
         | 
      |||
| 
      
       
        
          ## Chunk 31
        
        
           
     
        
       | 
  |||
      
smoothScatter(getMA(nesG[, 1:2]))
         | 
      |||
| 
      
       
        
          ## Chunk 32
        
        
           
     
        
       | 
  |||
      
g = exprs(kidney)[,1]
         | 
      |||
| 
      
       
        
          ## Chunk 33
        
        
           
     
        
       | 
  |||
      
Aspike = 2^seq(2, 16, by=0.5)
         | 
      |||
| 
      
       
        
          ## Chunk 34
        
        
           
     
        
       | 
  |||
      
A = (log2(r) + log2(g))/2
         | 
      |||
| 
      
       
        
          ## Chunk 35
        
        
           
     
        
       | 
  |||
      
plot(A, M.naive, pch=".", ylab="M", 
         | 
      |||
| 
      
       
        
          ## Chunk 36
        
        
           
     
        
       | 
  |||
      
ref = vsn2(CCl4s[, 1:5], backgroundsubtract=TRUE)
          
         | 
      |||
| 
      
       
        
          ## Chunk 37
        
        
           
     
        
       | 
  |||
      
x6 = justvsn(CCl4s[, 6], reference = ref, 
         | 
      |||
| 
      
       
        
          ## Chunk 38
        
        
           
     
        
       | 
  |||
      
plot(assayData(x6)$G, assayData(CCl4sn)$G[,6], pch=".", 
         | 
      |||