Generalization of Pair-HMM sequence aligner that uses a Pair-Tree Adjoining Grammar (TAG) for context sensitivity.