getCoverageInRange: Get Coverage in Range

Description Usage Arguments Value Examples

Description

Return a vector of length end - start + 1 of the number of reads overalapping that range.

Usage

1
 getCoverageInRange(cmpH5, refSeq, refStart, refEnd, idx = NULL)

Arguments

cmpH5

An object of class PacBioCmpH5

refSeq

Which reference sequence to use.

refStart

The start of the range (1-based inclusive).

refEnd

The end of the range (1-based inclusive).

idx

The indices alignments from the alignmentIndex to use. This argument can be used to filter certain alignments.

Value

A vector of length end - start + 1

Examples

1
2
3
4
5
  require(pbh5)  
  cmpH5 <- PacBioCmpH5(system.file("h5_files",  "aligned_reads.cmp.h5",
  package = "pbh5"))
  coverage <- getCoverageInRange(cmpH5, 1, 1000, 2000)
  boxplot(coverage, ylab = "Pileup Coverage") 

PacificBiosciences/R-pbh5 documentation built on May 7, 2019, 11:54 p.m.