getTemplateSpan: Functions to get information about the alignments.

Description Usage Arguments Value Examples

Description

These functions retrieve information about alignments. Namely, position, length, and accuracy.

Usage

1
2
3
  getTemplateSpan(cmpH5, idx = seq.int(1, nrow(cmpH5)))
  getAccuracy(cmpH5, idx = seq.int(1, nrow(cmpH5)),
              denominator = getReadLength)

Arguments

cmpH5

An object of class PacBioCmpH5.

idx

The indices of the alignments to retrieve.

denominator

What to divide the number of errors by.

Value

Return numeric vectors of length: length(idx).

Examples

1
2
3
4
5
6
7
8
  require(pbh5)
  cmpH5 <- PacBioCmpH5(system.file("h5_files",  "aligned_reads.cmp.h5", package = "pbh5"))
  tStrand <- getTemplateStrand(cmpH5)
  tStart <- getTemplateStart(cmpH5)
  tEnd <- getTemplateEnd(cmpH5)
  tSpan <- getTemplateSpan(cmpH5)
  matrix <- cbind(tStart, tEnd, tSpan)
  head(matrix, 10)

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