equals.MicroarrayData: Compares a MicroarrayData object with another Object

Description Usage Author(s) See Also Examples

Description

Compares a MicroarrayData object with another Object and returns TRUE if they are equal. For the MicroarrayData object raw to be equal to another Object obj it must be true that:

\item

1obj is of class MAData, \item2size(raw) == size(obj), \item3equals(getLayout(raw), getLayout(obj)) is true, and \item4the Euclidian distance between the each field in the two objects is small.

Usage

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

Author(s)

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

See Also

For more information see MicroarrayData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  # The option 'dataset' is used to annotate plots.
  options(dataset="sma:MouseArray")

  SMA$loadData("mouse.data")
  layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
  raw <- RawData(mouse.data, layout=layout)
  ma <- getSignal(raw)

  ma2 <- clone(ma)
  print(equals(ma, ma2))   # TRUE

  layout2 <- Layout(4,4,21,19)
  setLayout(ma2, layout2)
  print(equals(ma, ma2))   # FALSE

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