reverseCigar: reverseCigar function

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

This function reverses the cigar string, i.e., 20M15I10D will be reversed to 10D15I20M.

Usage

1
  reverseCigar(cigar, ops=CIGAR_OPS)

Arguments

cigar

A character vector of cigar strings.

ops

A character vector of the extended CIGAR operations. By default, CIGAR_OPS is used.

Value

A character vector contains the reversed cigar strings.

Author(s)

Ge Tan

See Also

cigar-utils

Examples

1
2
  cigar = c("20M15I10D", "10D15I20M")
  reverseCigar(cigar)

CNEr documentation built on Nov. 8, 2020, 5:36 p.m.