Giter VIP home page Giter VIP logo

Comments (7)

Martinsos avatar Martinsos commented on June 28, 2024

Finding alignment is not so hard! I know for each block its vertical deltas for every cell and horizontal delta of last cell in block. This means that if I store vertical and horizontal deltas for all blocks, I can reconstruct path of alignment. For each cell on path, I will have to compute part of block it belongs to.
I implemented this, it slows whole algorithm about 3, 4 times and takes a lot of memory.

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

Interesting: if query is larger then target, then optimal path will not go through so many blocks and finding alignment will be faster! In HW and SHW this does not affect us because we can not swap query and target, but in NW we can so this should be considered. On the other side, in NW query and target will usually be of similar length, so this does not really help

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

I should speed up alignment, and also make it consume much less memory.
Options I have for that: Hirschbergs algorithm, or something similar to what they did in SSW.
SSW idea could work pretty well for HW and SHW, since query is small there.
For NW I do not believe it will be very useful, so this is where I could consider Hirschberg.

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

I could also just try to use less space, by doing something smart hm. But big problem is that I do not want to allocate memory too often. I could use something like vector, to allocate memory dinamically?

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

I implemented SSW idea of finding alignment. SHW and HW now use NW alignment to find alignment. NW alignment is still implemented like before. Next step is to make NW use less memory, or implement it with Hischberg. I did some tests and it seems like Hirschberg method can be much slower in some cases, so I will not try it so soon.

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

I should change finding of alignment for NW so it uses only space needed for band, not the whole matrix.

from edlib.

Martinsos avatar Martinsos commented on June 28, 2024

I will create new issue for this!

from edlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.