internal: Count bases in cigar string

Description Usage Arguments Value

Description

Counts the total number of bases, per cigar, that fall into D, I, M, S categories. countCigar() makes no distinction between, for instance 1S2M2S, 2S2M1S, or 3S2M

Shortcut function in create_granges

Usage

1
2
3
countCigar(cigar)

bamflag(reads)

Arguments

cigar

character vector of cigar strings

reads

data.table holding the reads

Value

a 4-column, length(cigar)-row matrix with the total counts for each type

matrix of bits from BAM flags


mskilab/bambi documentation built on May 14, 2019, 4:04 a.m.