append.MicroarrayData: Appends another MicroarrayData object

Description Usage Arguments Author(s) See Also Examples

Description

Appends another identically structured MicroarrayData object(s).

Usage

1
2
## S3 method for class 'MicroarrayData'
append(this, other, ...)

Arguments

...

Other MicroarrayData object(s) to be appended to this object.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*removeSlides() and *keepSlides(). For more information see MicroarrayData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
  # Example that reads all GenePixData files in the current directory
  # and extracts the log-ratios and the log-intensities into *one*
  # MAData object. This approach only stores one GPR file in memory
  # at the time, which makes it possible to read in approximately
  # 10-20 times more files.
  files <- list.files(pattern="*.gpr");
  ma <- MAData();
  for (file in files) {
    gpr <- GenePixData$read(file);
    raw <- getRawData(gpr);
    rm(gpr); # Delete as quick as possible to optimize memory.
    append(ma, getSignal(raw, bgSubtract=TRUE));
    rm(raw); # Delete as quick as possible to optimize memory.
  }

## End(Not run)

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.