groups {ABSSeq} | R Documentation

## Accessors for the 'groups' slot of a ABSDataSet object.

### Description

Accessor functions for the 'groups' information in a ABSDataSet object.

### Usage

    ## S4 method for signature 'ABSDataSet'
    groups(object)

    ## S4 replacement method for signature 'ABSDataSet,factor'
    groups(object)<-value

### Arguments

`object` | an `ABSDataSet` object.
`value` | a `factor` object, includes two groups, equal with the number of samples

### Details

The 'groups' is a factor object, contains the experiment design for differential expression analysis. Its length should be equal with the sample size.

### Examples

    data(simuN5)
    obj <- ABSDataSet(counts=simuN5$counts, groups=factor(simuN5$groups))
    groups(obj)
    groups(obj) <- factor(rep(c("A","B"),c(5,5)))
    groups(obj)

[Package ABSSeq version 1.32.3 Index]