getIPD: Compute the IPD

Description Usage Arguments Details Value See Also Examples

Description

'getIPD' computes the inter-pulse duration for each base.

Usage

1
  getIPD(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
  require(pbh5)
  cmpH5 <- PacBioCmpH5(system.file("h5_files",  "aligned_reads.cmp.h5",
  package = "pbh5"))
  ipd <- getIPD(cmpH5)
  logIPD <- lapply(ipd, function(x) log(x))
  plot(density(logIPD[[1]], na.rm = TRUE), main = "Distribution of IPDs from the first alignment")

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