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 Feb. 2, 2023, 7:04 p.m.