getRunTotals: Get the runs and their values

View source: R/deltaCaptureC.R

getRunTotalsR Documentation

Get the runs and their values

Description

This function finds the runs of consecutive ranges in which the sign of the data does not change. It returns a GRanges object containing the contiguous ranges and the weighted sum of data in each.

Usage

getRunTotals(se, innerRegion, colName = "delta")

Arguments

se

a SummarizedExperiment whose first assay has a column named colName. Typically this will be a one-column matrix with delta.

innerRegion

a Granges object defining the region surrounding the viewpoint to be excluded from run total calculations

colName

defaults to 'delta'

Value

a GRanges object giving the contiguous regions and their respective sums

Examples

runTotals = getRunTotals(binnedDeltaSE,viewpointRegion)

michaeldshapiro/deltaCaptureC documentation built on April 21, 2023, 8:18 a.m.