Description
In the Minimap2 paper in section 2.1.1, the chaining score contribution from going from one anchor (j) to the next (i) is supposed to be given by:
α(j,i)=min{min{yi−yj,xi−xj},wi} is the number of matching bases between the two anchors
In other words, take minimum distance between the tail ends of the two anchors in the read or in the reference, and then the minimum of that and the length of the destination anchor. That indeed seems to be what is implemented in the code:
Lines 124 to 126 in ce03fbc
But why is the length of the destination anchor min'd in here, given what this is described as representing? Is this quantity really the "number of matching bases between the two anchors"? Or is it really intended to be something like the additional matching bases in anchor i that do not overlap matching bases in anchor j?