getTotalFragments

getTotalFragments(object)

# S4 method for SummarizedExperiment
getTotalFragments(object)

# S4 method for 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

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