totalWidth: Find total width of a 'GRanges' object

View source: R/alignment-utils.R View source: R/Amplicon-class.R

totalWidthR Documentation

Find total width of a GRanges object

Description

Adds the width of the intervals in a GRanges object.

Usage

totalWidth(object)

Arguments

object

a GRanges object

Value

numeric

Examples

gr <- GRanges(c("chr1", "chr2"), IRanges(c(11, 11), c(1000, 1000)))
totalWidth(gr)

cancer-genomics/trellis documentation built on June 8, 2024, 6:01 a.m.