aroma.light 1.21.0 Henrik Bengtsson
Snapshot Date: 2011-05-09 07:20:56 -0700 (Mon, 09 May 2011) | URL: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/aroma.light | Last Changed Rev: 54869 / Revision: 55359 | Last Changed Date: 2011-04-14 18:05:47 -0700 (Thu, 14 Apr 2011) |
| wilson2 | Linux (openSUSE 11.4) / x86_64 | OK | ERROR | |
liverpool | Windows Server 2003 R2 (32-bit) / x64 | OK | ERROR | OK |
gewurz | Windows Server 2008 R2 Enterprise (64-bit) / x64 | OK | ERROR | OK |
pelham | Mac OS X Leopard (10.5.8) / i386 | OK | [ ERROR ] | OK |
* using log directory ‘/Users/biocbuild/bbs-2.9-bioc/meat/aroma.light.Rcheck’
* using R version 2.14.0 Under development (unstable) (2011-04-24 r55634)
* using platform: i386-apple-darwin9.8.0 (32-bit)
* using session charset: UTF-8
* using option ‘--no-vignettes’
* checking for file ‘aroma.light/DESCRIPTION’ ... OK
* this is package ‘aroma.light’ version ‘1.21.0’
* package encoding: latin1
* checking package name space information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking whether package ‘aroma.light’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the name space can be loaded with stated dependencies ... OK
* checking whether the name space can be unloaded cleanly ... OK
* checking for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... NOTE
‘library’ or ‘require’ call not declared from: ‘R.basic’
* checking examples ... ERROR
Running examples in ‘aroma.light-Ex.R’ failed
The error most likely occurred in:
> assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: normalizeAffine.matrix
> ### Title: Weighted affine normalization between channels and arrays
> ### Aliases: normalizeAffine.matrix normalizeAffine.matrix
> ### Keywords: methods
>
> ### ** Examples
>
> pathname <- system.file("data-ex", "PMT-RGData.dat", package="aroma.light")
> rg <- read.table(pathname, header=TRUE, sep="\t")
> nbrOfScans <- max(rg$slide)
>
> rg <- as.list(rg)
> for (field in c("R", "G"))
+ rg[[field]] <- matrix(as.double(rg[[field]]), ncol=nbrOfScans)
> rg$slide <- rg$spot <- NULL
> rg <- as.matrix(as.data.frame(rg))
> colnames(rg) <- rep(c("R", "G"), each=nbrOfScans)
>
> layout(matrix(c(1,2,0,3,4,0,5,6,7), ncol=3, byrow=TRUE))
>
> rgC <- rg
> for (channel in c("R", "G")) {
+ sidx <- which(colnames(rg) == channel)
+ channelColor <- switch(channel, R="red", G="green");
+
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ # The raw data
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ plotMvsAPairs(rg[,sidx])
+ title(main=paste("Observed", channel))
+ box(col=channelColor)
+
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ # The calibrated data
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ rgC[,sidx] <- calibrateMultiscan(rg[,sidx], average=NULL)
+
+ plotMvsAPairs(rgC[,sidx])
+ title(main=paste("Calibrated", channel))
+ box(col=channelColor)
+ } # for (channel ...)
>
>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # The average calibrated data
> #
> # Note how the red signals are weaker than the green. The reason
> # for this can be that the scale factor in the green channel is
> # greater than in the red channel, but it can also be that there
> # is a remaining relative difference in bias between the green
> # and the red channel, a bias that precedes the scanning.
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> rgCA <- rg
> for (channel in c("R", "G")) {
+ sidx <- which(colnames(rg) == channel)
+ rgCA[,sidx] <- calibrateMultiscan(rg[,sidx])
+ }
>
> rgCAavg <- matrix(NA, nrow=nrow(rgCA), ncol=2)
> colnames(rgCAavg) <- c("R", "G");
> for (channel in c("R", "G")) {
+ sidx <- which(colnames(rg) == channel)
+ rgCAavg[,channel] <- apply(rgCA[,sidx], MARGIN=1, FUN=median, na.rm=TRUE);
+ }
>
> # Add some "fake" outliers
> outliers <- 1:600
> rgCAavg[outliers,"G"] <- 50000;
>
> plotMvsA(rgCAavg)
> title(main="Average calibrated (AC)")
>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # Normalize data
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # Weight-down outliers when normalizing
> weights <- rep(1, nrow(rgCAavg));
> weights[outliers] <- 0.001;
>
> # Affine normalization of channels
> rgCANa <- normalizeAffine(rgCAavg, weights=weights)
> # It is always ok to rescale the affine normalized data if its
> # done on (R,G); not on (A,M)! However, this is only needed for
> # esthetic purposes.
> rgCANa <- rgCANa *2^1.4
> plotMvsA(rgCANa)
> title(main="Normalized AC")
>
> # Curve-fit (lowess) normalization
> rgCANlw <- normalizeLowess(rgCAavg, weights=weights)
Warning in normalizeCurveFit.matrix(X, method = "lowess", ...) :
Weights were rounded to {0,1} since 'lowess' normalization supports only zero-one weights.
> plotMvsA(rgCANlw, col="orange", add=TRUE)
>
> # Curve-fit (loess) normalization
> rgCANl <- normalizeLoess(rgCAavg, weights=weights)
> plotMvsA(rgCANl, col="red", add=TRUE)
>
> # Curve-fit (robust spline) normalization
> rgCANrs <- normalizeRobustSpline(rgCAavg, weights=weights)
Error: with(spline.prep, { .... is not TRUE
Execution halted