buildPositionMap: prepares a matrix of operations and coordinates from a CIGAR

Description Usage Arguments Value Examples

View source: R/cigar.R

Description

This method will prepare a matrix of operations, query coordinates and target coordinates from a Cigar string extracted from a BAM file

Usage

1

Arguments

cigar

is the CIGAR string to parse

Value

matrix of coordinates

Examples

1
2
3
cigarStr <-
    "46S14M5D14M2D44M3I6M2I14M3I15M1D27M1D11M1I20M1I8M2I2M3I10S"
cigarPM <- buildPositionMap(cigarStr)

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