convert_to_cigar: Convert Expanded CIGAR String to Standard CIGAR Format

View source: R/sequence_position_handling_indels.R

convert_to_cigarR Documentation

Convert Expanded CIGAR String to Standard CIGAR Format

Description

This function takes an expanded CIGAR string (where each operation is represented individually, e.g., "MMMMMMMDDDDDDDMIDD") and converts it into standard CIGAR format (where consecutive operations are counted, e.g., "7M7D1M1I2D").

Usage

convert_to_cigar(cleaned_cigar)

Arguments

cleaned_cigar

A character string representing the expanded CIGAR string.

Value

A character string in standard CIGAR format.


JakobPedersenLab/dreams documentation built on Feb. 2, 2024, 3:14 p.m.