cigarQ2R: maps query coordinates to the reference sequence

Description Usage Arguments Value Examples

View source: R/cigar.R

Description

This method will prepare a vector of reference coordinates from the supplied query coordinates

Usage

1
cigarQ2R(poi, cigar)

Arguments

poi

is a vector of numeric positions of interest

cigar

is the CIGAR string to parse

Value

matrix of coordinates

Examples

1
2
3
cigarStr <-
    "46S14M5D14M2D44M3I6M2I14M3I15M1D27M1D11M1I20M1I8M2I2M3I10S"
cigarQ2R(c(20,40,60,80,100), cigarStr)

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.