get_indel_info: Extract Indel Information from CIGAR String and Genomic...

View source: R/sequence_position_handling_indels.R

get_indel_infoR Documentation

Extract Indel Information from CIGAR String and Genomic Position

Description

This function takes a genomic position and a CIGAR string as input and extracts information about indels. It processes the CIGAR string to determine the genomic positions, lengths, and indel type.

Usage

get_indel_info(pos, cigar)

Arguments

pos

An integer representing the starting genomic position of the CIGAR string.

cigar

A character string representing the CIGAR format.

Value

A list containing the following elements: - genomic_pos: An integer vector of the genomic positions of the indels. - indel_length: An integer vector of the lengths of the indels. - indel_type: A character vector of the types of the indels (either 'I' for insertion or 'D' for deletion).


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