b07-0-CompleteChannel-class: Class "CompleteChannel"

Description Usage Arguments Details Value Slots Methods Pre-defined Processors Author(s) See Also Examples

Description

An object of the CompleteChannel class represents one channel (red or green) of a two-color fluorescence microarray experiment. Alternatively, it can also represent the entirety of a radioactive microarray experiment. Affymetrix experiments produce data with a somewhat different structure because they use multiple probes for each target gene.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
CompleteChannel(name, type, data)
## S4 method for signature 'CompleteChannel'
print(x, ...)
## S4 method for signature 'CompleteChannel'
show(object)
## S4 method for signature 'CompleteChannel'
summary(object, ...)
## S4 method for signature 'CompleteChannel'
as.data.frame(x, row.names=NULL, optional=FALSE)
## S4 method for signature 'CompleteChannel,missing'
plot(x, main=x@name, useLog=FALSE, ...)
## S4 method for signature 'CompleteChannel'
image(x, ...)
## S4 method for signature 'CompleteChannel'
analyze(object, useLog=FALSE, ...)
## S4 method for signature 'CompleteChannel,Processor'
process(object, action, parameter)
## S4 method for signature 'CompleteChannel'
channelize(object, ...)

Arguments

name

character string specifying the name of the object

type

object of class ChannelType

data

data frame. For the pre-defined “extraction” processors to work correctly, this should include columns called vol, bkgd, svol, SD, and SN.

x

object of class CompleteChannel

object

object of class CompleteChannel

main

character string specifying the title for the plot

useLog

logical scalar. If TRUE, convert to logarithmic values.

action

object of class Processor used to process a CompleteChannel

parameter

any object that makes sense as a parameter to the function represented by the Processor action

row.names

See as.data.frame

optional

See as.data.frame

...

extra arguments for generic or plotting routines

Details

The names come from the default column names in the ArrayVision software package used at M.D. Anderson for quantifying glass or nylon microarrays. Column names used by other software packages should be mapped to these.

Value

The analyze method returns a list of three density functions.

The return value of the process function depends on the Processor performing the action, but is typically a Channel object.

Graphical methods invisibly return the object on which they were invoked.

Slots

name:

character string containing the name of the object

type:

object of class ChannelType

data:

data frame

history:

list that keeps a record of the calls used to produce this object

Methods

print(x, ...)

Print all the data on the object. Since this includes the data frame, you rarely want to do this.

show(object)

Print all the data on the object. Since this includes the data frame, you rarely want to do this.

summary(object, ...)

Write out a summary of the object.

as.data.frame(x,row.names=NULL, optional=FALSE)

Convert the CompleteChannel object into a data frame. As you might expect, this simply returns the data frame in the data slot of the object.

plot(x, useLog=FALSE, ...)

Produces three estimated density plots: one for the signal, one for the background, and one for the background-corrected signal. Additional graphical parameters are passed along. The logical flag useLog determines whether the data are log-transformed before estimating and plotting densities.

analyze(object, useLog=FALSE, ...)

This method computes the estimated probability density functions for the three data components (signal, background, and background-corrected signal), and returns them as a list.

image(object, ...)

Uses the image method for Channel objects to produce geographically aligned images of the log-transformed intensity and background estimates.

channelize(object, ...)

character string giving the name of the class of a channel that is produced when you process a CompleteChannel object.

process(object, action, parameter=NULL)

Use the Processor action to process the CompleteChannel object. Returns an object of the class described by channelize, which defaults to Channel.

Pre-defined Processors

The library comes with several Processor objects already defined; each one takes a CompleteChannel as input, extracts a single value per spot, and produces a Channel as output.

PROC.BACKGROUND

Extract the vector of local background measurements.

PROC.SIGNAL

Extract the vector of foreground signal intensity measurements.

PROC.CORRECTED.SIGNAL

Extract the vector of background-corrected signal measurements. Note that many software packages automatically truncate these value below at zero, so this need not be the same as SIGNAL - BACKGROUND.

PROC.NEG.CORRECTED.SIGNAL

Extract the vector of background-corrected signal intensities by subtracting the local background from the observed foreground, without truncation.

PROC.SD.SIGNAL

Extract the vector of pixel standard deviations of the signal intensity.

PROC.SIGNAL.TO.NOISE

Extract the vector of signal-to-noise ratios, defined as CORRECTED.SIGNAL divided by the standard deviation of the background pixels.

Author(s)

Kevin R. Coombes krc@silicovore.com, P. Roebuck proebuck@mdanderson.org

See Also

process, Processor, Pipeline, Channel, as.data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
showClass("CompleteChannel")

## simulate a complete channel object
v <- rexp(10000, 1/1000)
b <- rnorm(10000, 60, 6)
s <- sapply(v-b, function(x) {max(0, x)})
ct <- ChannelType('user', 'random', 100, 100, 'fake')
x <- CompleteChannel(name='fraud', type=ct,
                      data=data.frame(vol=v, bkgd=b, svol=s))
rm(v, b, s, ct)

summary(x)

opar <- par(mfrow=c(2,3))
plot(x)
plot(x, main='Log Scale', useLog=TRUE)
par(opar)

opar <- par(mfrow=c(2,1))
image(x)
par(opar)

b <- process(x, PROC.NEG.CORRECTED.SIGNAL)
summary(b)

q <- process(b, PIPELINE.STANDARD)
summary(q)

q <- process(x, PIPELINE.MDACC.DEFAULT)
summary(q)

## cleanup
rm(x, b, q, opar)

Example output

Loading required package: oompaBase
Class "CompleteChannel" [package "PreProcess"]

Slots:
                                                      
Name:         name        type        data     history
Class:   character ChannelType  data.frame        list
Microarray type: user random 
Labeled with: fake 
[1] "fraud"
      vol                bkgd            svol        
 Min.   :    0.15   Min.   :37.65   Min.   :    0.0  
 1st Qu.:  285.38   1st Qu.:56.00   1st Qu.:  225.1  
 Median :  687.01   Median :60.06   Median :  627.2  
 Mean   :  994.61   Mean   :60.05   Mean   :  936.3  
 3rd Qu.: 1383.81   3rd Qu.:64.08   3rd Qu.: 1323.0  
 Max.   :11798.82   Max.   :82.05   Max.   :11740.7  
background-corrected signal fraud, a microarray channel object
Parent object: x 
Microarray type: user random 
Labeled with: fake 
Design size: 100 by 100 
Design information object:  
History:
	 Foreground - Background (using object: PROC.NEG.CORRECTED.SIGNAL) with parameter = 0 

    Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
  -77.35   225.10   627.15   934.56  1322.99 11740.70 
log normalized background-corrected signal fraud, a microarray channel object
Parent object: x 
Microarray type: user random 
Labeled with: fake 
Design size: 100 by 100 
Design information object:  
History:
	 Foreground - Background (using object: PROC.NEG.CORRECTED.SIGNAL) with parameter = 0 
	 Default channel processing (using pipeline: PIPELINE.STANDARD) 
	 Global normalization (using object: proc) with parameter = 0 
	 Truncated below (using object: proc) with parameter = 0 
	 Log transformation (using object: proc) with parameter = 2 

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
   -Inf   7.411   8.889    -Inf   9.966  13.115 
log normalized signal fraud, a microarray channel object
Parent object: object 
Microarray type: user random 
Labeled with: fake 
Design size: 100 by 100 
Design information object:  
History:
	 Foreground intensity (using object: proc) with parameter = 0 
	 Global normalization (using object: proc) with parameter = 0 
	 Truncated below (using object: proc) with parameter = 25 
	 Log transformation (using object: proc) with parameter = 2 

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  4.644   7.688   8.956   8.715   9.966  13.058 

PreProcess documentation built on May 6, 2019, 5:02 p.m.