write.ScanAlyzeData: Write a ScanAlyze Results Data file

Description Usage Arguments Value Author(s) References See Also Examples

Description

Writes the ScanAlyzeData object to a file with the ScanAlyze file format.

Usage

1
2
## S3 method for class 'ScanAlyzeData'
write(this, filename, path=NULL, slide=NULL, overwrite=FALSE, row.names=FALSE, ..., verbose=FALSE)

Arguments

filename

The filename of the file to be read.

path

The path to the file.

slide

An integer specifying which slides to be written to file. Currently, only one slide at the time can be written.

...

Arguments passed to write.table.

Value

Returns nothing.

Author(s)

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

References

The data file in the example above was contributed by Michael Stadler, Bioinformatics Group, Swiss Institute for Experimental Cancer Research.

See Also

To read one or more ScanAlyze Results files see *read(). For more information see ScanAlyzeData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  sa <- ScanAlyzeData$read("group4.dat", path=system.file("data-ex", package="aroma"))

  # Writes the ScanAlyzeData to a temporary file. 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. The data,
  # however, will be the same.
  filename <- paste(tempfile("ScanAlyzeData"), ".dat", sep="")
  write(sa, filename)

  sa2 <- ScanAlyzeData$read(filename)
  print(equals(sa, sa2))  # TRUE

  unlink(filename)

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