load_BAM | R Documentation |
This function reads alignment data from a .BAM file and formats it as a tibble (data frame) in R. It allows for the selection of specific genomic regions by specifying chromosomes and positions, and it extracts relevant alignment data including tags for further analysis. The function also includes processing of UMI tags and correction for hard clips in the CIGAR strings.
load_BAM(BamPath, chr = NULL, pos = NULL)
BamPath |
The file path to the .BAM file to be loaded. |
chr |
A vector of chromosome identifiers indicating the chromosomes of interest for the analysis. (strings) |
pos |
A vector of numeric positions indicating the specific locations of interest within the chromosomes. (numeric) |
A tibble (data frame) containing the extracted alignment data from the .BAM file, including processed UMI features and genomic positions, as well as any necessary corrections for alignment issues such as hard clipping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.