dhtslib.md

Module to deal with SAM records' MD auxillary tag.

This tag is a string encoding mismatched and deleted reference bases, used in conjunction with CIGAR and SEQ fields to reconstruct the bases of the reference sequence interval to which the alignment has been mapped. This can enable variant calling without require access to the entire original reference.

Reference: https://samtools.github.io/hts-specs/SAMtags.pdf

Members

Functions

getMDPairs
auto getMDPairs(SAMRecord rec)

Undocumented in source. Be warned that the author may not have intended to support it.

Structs

MDItr
struct MDItr

Undocumented in source.

MDPair
struct MDPair

Undocumented in source.

Variables

MDREGEX
auto MDREGEX;

regex to extract MD string groups ex: "11A3^G" -> [(11, "A"), (3, "^G")]

Meta