cigar2length: CIGAR-to-length

Description Usage Arguments Details Value Author(s) Examples

View source: R/6_1_cigar2length.R

Description

Converts CIGAR string of the mappint to length of the mapping

Usage

1
cigar2length(cigar_string)

Arguments

cigar_string

character, CIGAR string from the alignment data.frame

Details

Converts CIGAR string to length of the mapping fragment; copied from Java script to some alignment processing tool..

Value

returns integer.

Author(s)

Vladislava Milchevskaya milchv@gmail.com

Examples

1
2
3
cigar_character = "20M1S2N5M"
mapping_length = cigar2length(cigar_character)
mapping_length

VladaMilch/pdProbeRemap documentation built on May 28, 2019, 3:21 p.m.