getFragmentsPerPeak {chromVAR} | R Documentation

## getFragmentsPerPeak

### Description

getFragmentsPerPeak

### Usage

    getFragmentsPerPeak(object)

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

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

### Arguments

`object` | SummarizedExperiment, matrix, or Matrix object

### Value

vector with sum across rows of counts assay within chromVARCounts

### Methods (by class)

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

- `MatrixOrmatrix`: method for Matrix or matrix object

### See Also

`getFragmentsPerSample`, `getTotalFragments`

### Examples

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

    frags_per_peak <- getFragmentsPerPeak(mini_counts)

[Package chromVAR version 1.4.1 Index]