write.MicroarrayData: Write a MicroarrayData object to file

Description Usage Arguments Value Author(s) See Also Examples

Description

Write a MicroarrayData object to file. By default, if not overridden by a method in a subclass, it writes the data to a tab-delimited file. Note that subclasses like GenePixData, ScanAlyzeData and SpotData do write files in their special file formats. To force such object of such classes to be written as tab-delimited file, do write.MicroarrayData(object, ...) instead.

Usage

1
2
## S3 method for class 'MicroarrayData'
write(this, filename, path=NULL, slides=NULL, overwrite=FALSE, row.names=FALSE, sep="	", ..., verbose=FALSE)

Arguments

filename

The filename of the GPR file to be written.

path

The path to the GPR file.

slides

The slides to be written. If NULL, all slides are considered.

overwrite

If TRUE, an existing file is overwritten. Otherwise an exception is thrown.

row.names

If TRUE, row names are written, otherwise not.

sep

The separator between the cells.

...

Other arguments accepted by subclasses or which are passed to write.table.

Value

Returns nothing.

Author(s)

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

See Also

To read one or more MicroarrayData files at once see *read(). For more information see MicroarrayData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  # Loads the file 'gpr123.gpr' located in the data directory:
  gpr <- GenePixData$read("gpr123.gpr", path=system.file("data-ex", package="aroma"))

  # Writes the GenePix Results Data to a file named "temp.gpr". Note
  # that this file won't be exactly the same since a few lines,
  # specifying for instance the creator of the file, will be added.
  write(gpr, "temp.gpr", overwrite=TRUE)

  # Extracts the raw data from the gpr object and saves it to file.
  raw <- getRawData(gpr)
  write(raw, "temp.raw", overwrite=TRUE)
  file.show("temp.raw")

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