read.QuantArrayData: Reads one or several QuantArray files into one QuantArrayData...

Description Usage Arguments Value Author(s) See Also Examples

Description

Reads one or several QuantArray files into one QuantArrayData object. Currently QuantArray v2 and v3 are supported. If the version is not recognized it will try to make a best guess and read it in anyway. However, it can not be guaranteed that all fields will be of the correct data type.

This method also reads Unicoded QuantArray files. If the file is Unicoded it is first translated into a temporary ASCII file, which is then read. The translation from Unicode to ASCII is done by "brute force", i.e. by excluding the hi-bytes and only keeping the lo-bytes. This means that some characters will be incorrectly translated. If that happens, a warning will be given, otherwise not.

Usage

1
QuantArrayData$read(filename=NULL, path=NULL, pattern=NULL, verbose=FALSE, ...)

Arguments

filename

A vector of filenames. Either pattern or filename must be specified.

path

A string (or an optional vector of paths if filename is specified) to the files.

pattern

A pattern string for matching filenames. Either pattern or filename must be specified.

verbose

If TRUE, information will printed out during the reading of the file.

Value

Returns a QuantArrayData object.

Author(s)

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

See Also

To write a slide to a QuantArray Results file see *write(). For pattern formats see list.files(). For more information see QuantArrayData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 ## Not run: 
  # Read two QuantArray data files
  # filenames <- c("quantarray123.gpr", "quantarray123.gpr");
  # qa <- QuantArrayData$read(filenames, path=system.file("data-ex", package="aroma"))

  # Do not have any QuantArray sample files, will examplify using
  # the GenePix sample files instead...
  filenames <- c("gpr123.gpr", "gpr123.gpr");
  qa <- GenePixData$read(filenames, path=system.file("data-ex", package="aroma"))

  # Create a RawData object from this QuantArrayData objects.
  raw <- getRawData(qa)
 
## End(Not run)

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