extractFactors {piano} | R Documentation

## Extracts `ArrayData` factors

### Description

Extracts the factors, given by an `ArrayData` object, that can be used by `diffExp`

### Usage

    extractFactors(arrayData)

### Arguments

`arrayData` | an `ArrayData` object.

### Value

A `list` with elements:

`factors` | Assigns one factor to each array
`uniqueFactors` | The unique factors that can be used to form contrasts

### Author(s)

Leif Varemo piano.rpkg@gmail.com and Intawat Nookaew piano.rpkg@gmail.com

### See Also

piano, `diffExp`

### Examples

      # Get path to example data and setup files:
      dataPath <- system.file("extdata", package="piano")

      # Load normalized data:
      myArrayData <- loadMAdata(datadir=dataPath, dataNorm="norm_data.txt.gz", platform="yeast2")

      #Extract the factors that can be used in the call to diffExp:
      extractFactors(myArrayData)

[Package piano version 2.0.2 Index]