getCumulativeAdvanceTime: Compute the CumulativeAdvanceTime

Description Usage Arguments Details Value See Also Examples

Description

'getCumulativeAdvanceTime' computes the cumulative advance time for each idx. Cumulative advance time is cumsum(pw + ipd).

Usage

1
  getCumulativeAdvanceTime(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

Inter-pulse distances are given in seconds.

Value

A list of vectors of inter-pulse distances.

See Also

PacBioCmpH5-class

Examples

1
2
3
4
5
6
7
  require(pbh5)
  cmpH5 <- PacBioCmpH5(system.file("h5_files",  "aligned_reads.cmp.h5",
                       package = "pbh5"))
  ipd <- getCumulativeAdvanceTime(cmpH5)
  logCumulativeAdvanceTime <- lapply(ipd, function(x) log(x))
  plot(density(logCumulativeAdvanceTime[[1]], na.rm = TRUE),
       main = "CumulativeAdvanceTimes")

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