View source: R/sequence_position_handling_indels.R
get_indels_start_positions | R Documentation |
This function analyzes a CIGAR string and extracts the start positions of insertions and deletions. It parses the CIGAR string, calculates the cumulative lengths of operations, and then identifies the start positions of the 'I' and 'D' segments.
get_indels_start_positions(cigar)
cigar |
A character string representing the CIGAR format. |
An integer vector containing the start positions of each insertion and deletion in the CIGAR string. Positions are 1-based.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.