clean_insertions: Clean Insertions in CIGAR Sequence

View source: R/sequence_position_handling_indels.R

clean_insertionsR Documentation

Clean Insertions in CIGAR Sequence

Description

This function adjusts the sequence of CIGAR operations by cleaning up insertion operations. It removes any insertions that follow deletions and consolidates consecutive insertions that follow any operation other than deletions into a single insertion, while removing the operation that precedes the insertions.

Usage

clean_insertions(expanded_cigar)

Arguments

expanded_cigar

A string representing the sequence output from expand_cigar.

Value

A string of the CIGAR sequence after cleaning up the insertion operations. For example, 'MMDDIMMII' would be to MMDDMI'.


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