getPulseWidth: Compute the Pulse Width

Description Usage Arguments Details Value Examples

Description

'getPulseWidth' computes the pulsewidth for each base.

Usage

1
  getPulseWidth(cmpH5, idx, unit = c("seconds", "frames"))

Arguments

cmpH5

An object of class PacBioCmpH5.

idx

The indices of the alignments to retrieve.

unit

Whether you want seconds or frames.

Details

Pulsewidth is computed in seconds.

Value

'getPulseWidth' returns a list of vectors with pulsewidths.

Examples

1
2
3
4
5
6
7
  require(pbh5)
  cmpH5 <- PacBioCmpH5(system.file("h5_files",  "aligned_reads.cmp.h5",
  package = "pbh5"))
  pw <- getPulseWidth(cmpH5)
  logPW <- lapply(pw, function(x) log(x))
  plot(density(logPW[[1]], na.rm = TRUE), main = "Distribution of pulse
  widths from the first alignment")

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