extract_indel_info: Extract Indel Information from BAM Data Frame

View source: R/sequence_position_handling_indels.R

extract_indel_infoR Documentation

Extract Indel Information from BAM Data Frame

Description

This function processes a data frame containing BAM file information to extract indel information. It filters rows with insertions or deletions, calculates indel lengths and types, and generates genomic positions and indel sequences.

Usage

extract_indel_info(bam_df)

Arguments

bam_df

A data frame containing BAM file information, including columns for position (pos), CIGAR string (cigar), and sequence (seq).

Value

A modified version of the input data frame bam_df, which includes additional columns for genomic position (genomic_pos), indel length (indel_length), indel type (indel_type), and indel sequence (indel_seq). Each row corresponds to an indel event.


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