Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rboettcher
    Member
    • Oct 2010
    • 71

    Comparison of alignment algorithms

    Hi all,
    I was wondering how the different algorithms for optimal alignments (NW, SW etc.) compare to each other in terms of runtime, since I've been told that NW and SW are very ineffective/slow, but Hirschberg and Gotoh only offer minor improvements (if any).
    So far I've found differing statements concerning complexity and runtime...

    My main focus lies on runtime, though memory requirements are of course to be considered as well if there are very great differences.
    I hope that somebody can detangle the whole subject for me, especially in terms of linear and affine gap costs.
    Oh and please don't tell me to use public available aligners like bowtie or BWA instead (I already do that btw), because this is absolutely NOT helping with my project at university

    Thank you in advance and have a nice day
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Ah, so this is for homework, so should we really be helping?

    Did you know that all these algorithms can be made to work in a linear amount of memory (think Frontier search)? Their time complexities are well described their respective papers, so I am not sure how they are differing.

    Linear vs. Affine really comes down to finding longer gaps, and what are the relative scoring penalties (gap open/extend vs. mismatch/match).

    Comment

    • rboettcher
      Member
      • Oct 2010
      • 71

      #3
      Thehe, since the goal is to implement a fast aligner, I was hoping you could give me a push in the right direction in terms of which algorithm to chose
      For example, I read that Hirschberg algorithm is a little slower than NW but way more efficient concerning memory, but this is just slightly indicated by the complexity mentioned (if it is mentioned at all, I'm not sure right now).
      That is why I would like to have a ranking or a table that tells me which of the algorithms is the fastest/best in terms of runtime and memory consumption (I think this might be handy for other people as well).
      I already tried to find something like that, but I didn't succeed so far (will continue searching though).

      Regards

      Comment

      • areyes
        Senior Member
        • Aug 2010
        • 165

        #4
        Originally posted by rboettcher View Post
        Hi all,
        Oh and please don't tell me to use public available aligners like bowtie or BWA instead (I already do that btw), because this is absolutely NOT helping with my project at university
        Sorry for not having an answer for your question. But your phrase called my attention, why is this so?

        Comment

        • rboettcher
          Member
          • Oct 2010
          • 71

          #5
          It does not help because I was told to implement a pairwise sequence alignment which is time dependent and very accurate
          I tried to get some inspiration from the commonly used software, but until now it is a little to advanced for me...
          Moreover it has to be finished soon, that is why I'm searching for help.
          We're also using common aligners for getting used to the handling, still I'm obliged to implement some algorithm using a dynamic programming approach for reasons of understanding the whole process (and as programming exercise).
          If you think it's a waste of time feel free to contact my professor

          Regards
          Last edited by rboettcher; 04-06-2011, 12:13 AM.

          Comment

          • jkbonfield
            Senior Member
            • Jul 2008
            • 146

            #6
            The hirschberg (or Gotoh's?) technique, if I recall, pretty much involves in recursively breaking the alignment down into smaller bits. However to find an appropriate point on the alignment matrix to split at it has to run the alignment through anyway, albeit without storing data, so it essentially does double the work in order to use far less memory. I may be wrong on that though as it's been a long time!

            I'd advise checking some of the earlier linear space alignment algorithms from Miller and Myers. They're pretty hard to follow due to excessive use of single letter variables, but they're a goof starting point for full local and global alignment calculations. See http://bioinformatics.oxfordjournals...t/4/1/11.short. They later did a variant that uses a band to avoid the full N^2 complexity, and later still some block stiching version.

            Modern techniques tend to use hashing more though - looking for exact matching "words" of sequence and then either stitching these together to produce an actual alignment or using the location of the words to control a band through the alignment matrix.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              New Genomics Tools and Methods Shared at AGBT 2025
              by seqadmin


              This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

              The Headliner
              The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
              03-03-2025, 01:39 PM
            • seqadmin
              Investigating the Gut Microbiome Through Diet and Spatial Biology
              by seqadmin




              The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
              02-24-2025, 06:31 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 05:03 AM
            0 responses
            16 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-19-2025, 07:27 AM
            0 responses
            15 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-18-2025, 12:50 PM
            0 responses
            16 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-03-2025, 01:15 PM
            0 responses
            185 views
            0 reactions
            Last Post seqadmin  
            Working...