Is it possible to generate variants per read from a SAM/BAM file

2 views (last 30 days)
Given reads aligned to a reference in a SAM/BAM file, I would like to generate the variants (indels and SNPS) for each read. Can anyone offer suggestions on operations that may support this? It seems like I have parse the reference and read using the CIGAR string. I'm hoping there may already be some code to help.

Answers (0)

Categories

Find more on Bioinformatics Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!