getFragmentsPerSample {chromVAR} | R Documentation

## getFragmentsPerSample

### Description

getFragmentsPerSample

### Usage

    getFragmentsPerSample(object)

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

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

### Arguments

`object` | SummarizedExperiment, matrix, or Matrix object

### Value

vector with sum across columns 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

`getFragmentsPerPeak`, `getTotalFragments`

### Examples

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

[Package chromVAR version 1.9.0 Index]