Thanks to visit codestin.com
Credit goes to github.com

Skip to content

First coordinate skipped when populating alignment arrays #4

@atarsha

Description

@atarsha

Hi Jon,

I'm not sure if I've followed your code exactly right, but in the align_tracks() routine while loop, you maintain i > 0 || j > 0.

The children if statements then decide which alignment sequence to apply the coordinate to.

If I'm right, this means the final coordinate track1[0] and track2[0] NEVER get prepended onto a1 and a2

My testing seems to support this, but I have rewritten a lot of this in PHP so it may be a flaw on my part, but logically I see the same issue with the python code.

Your images on your blog seem to support this as well with the initial coordinate not being blue.

I'm trying to figure this out on my end, unfortunately, I'm not extremely familiar with these matrixes, and obviously if i == 0, i-1 is an undefined index which would break these if statements.

Any insight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions