counts {isomiRs} | R Documentation

## Accessors for the count matrix of a IsomirDataSeq object.

### Description

The counts slot holds the count data as a matrix of non-negative integer count values, one row for each isomiR, and one column for each sample. The normalized matrix can be obtained by using the parameter `norm=TRUE`.

### Usage

    counts.IsomirDataSeq(object, norm = FALSE)

    ## S4 method for signature 'IsomirDataSeq'
    counts(object, norm = FALSE)

    ## S4 replacement method for signature 'IsomirDataSeq,matrix'
    counts(object) <- value

### Arguments

`object` | A `IsomirDataSeq` object.
`norm` | Boolean, return log2-normalized counts.
`value` | An integer matrix.

### Value

base::matrix with raw or normalized count data.

### Author(s)

Lorena Pantano

### Examples

    data(mirData)
    head(counts(mirData))

[Package isomiRs version 1.14.0 Index]