getTotalFragments {chromVAR} | R Documentation

## getTotalFragments

### Description

getTotalFragments

### Usage

    getTotalFragments(object)

    ## S4 method for signature 'SummarizedExperiment'
    getTotalFragments(object)

    ## S4 method for signature 'MatrixOrmatrix'
    getTotalFragments(object)

### Arguments

`object` | SummarizedExperiment, matrix, or Matrix object

### Value

sum of all counts within object

### Methods (by class)

- `SummarizedExperiment`: method for SummarizedExperiment object with counts assay

- `MatrixOrmatrix`: method for Matrix or matrix object

### See Also

`getFragmentsPerSample`, `getFragmentsPerPeak`

### Examples

    # Load very small example counts (already filtered)
    data(mini_counts, package = "chromVAR")
    total_frags <- getTotalFragments(mini_counts)

[Package chromVAR version 1.2.0 Index]