Skip to content

Chaining score contributions from anchors seem to be capped by the anchor length, but the paper doesn't explain why #1125

Open
@adamnovak

Description

@adamnovak

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:

minimap2/lchain.c

Lines 124 to 126 in ce03fbc

dg = dr < dq? dr : dq;
q_span = aj->y>>32&0xff;
sc = q_span < dg? q_span : dg;

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions