View source: R/sequence_position_handling_indels.R
get_indel_info | R Documentation |
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.
get_indel_info(pos, cigar)
pos |
An integer representing the starting genomic position of the CIGAR string. |
cigar |
A character string representing the CIGAR format. |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.