R version 4.5.0 RC (2025-04-04 r88112 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # channel-test.ssc > library(PreProcess) Loading required package: oompaBase > > suppressWarnings( RNGversion("3.5.3") ) > set.seed(732657) > # simulate a moderately realistic looking microarray > nc <- 100 # number of rows > nr <- 100 # number of columns > v <- rexp(nc*nr, 1/1000) # "true" signal intensity (vol) > b <- rnorm(nc*nr, 80, 10) # background noise > s <- sapply(v-b, max, 1) # corrected signal instensity (svol) > ct <- ChannelType('user', 'random', nc, nr, 'fake') > raw <- Channel(name='fraud', type=ct, parent='', vec=v) > subbed <- Channel(name='fraud', parent='', type=ct, vec=s) > rm(nc, nr, v, b, s) # clean some stuff > > summary(subbed) fraud, a microarray channel object Parent object: NA Microarray type: user random Labeled with: fake Design size: 100 by 100 Design information object: History: Channel(parent = "", name = "fraud", type = ct, vec = s) Min. 1st Qu. Median Mean 3rd Qu. Max. 1.0 199.5 594.9 910.9 1279.0 9550.0 > summary(raw, digits = 2) fraud, a microarray channel object Parent object: NA Microarray type: user random Labeled with: fake Design size: 100 by 100 Design information object: History: Channel(parent = "", name = "fraud", type = ct, vec = v) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.24 280.00 680.00 990.00 1400.00 9600.00 > > par(mfrow=c(2,1)) > plot(raw) > hist(raw) > > par(mfrow=c(1,1)) > image(raw) > > # finish the cleanup > rm(ct, raw, subbed) > > > proc.time() user system elapsed 0.71 0.06 0.76