View source: R/deltaCaptureC.R

getRunTotals | R Documentation |

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.

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

`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' |

a GRanges object giving the contiguous regions and their respective sums

```
runTotals = getRunTotals(binnedDeltaSE,viewpointRegion)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.