countCigar: Count bases in cigar string

countCigarR Documentation

Count bases in cigar string

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

Usage

countCigar(cigar)

Arguments

cigar

character vector of cigar strings

Value

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


mskilab/bamUtils documentation built on Sept. 28, 2022, 3:45 p.m.