validDGEList {edgeR} | R Documentation

## Check for Valid DGEList object

### Description

Check for existence of standard components of DGEList object.

### Usage

    validDGEList(y)

### Arguments

`y` | `DGEList` object.

### Details

This function checks that the standard `counts` and `samples` components of a `DGEList` object are present.

### Value

`DGEList` with missing components added.

### Author(s)

Gordon Smyth

### See Also

`DGEList`

### Examples

    counts <- matrix(rpois(4*2,lambda=5),4,2)
    dge <- new("DGEList", list(counts=counts))
    validDGEList(dge)

[Package edgeR version 3.28.1 Index]