[med-svn] [Git][med-team/daligner][upstream] New upstream version 1.0+git20240119.335105d

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Sun Jan 21 11:03:56 GMT 2024



Étienne Mollier pushed to branch upstream at Debian Med / daligner


Commits:
93ba6085 by Étienne Mollier at 2024-01-21T11:56:02+01:00
New upstream version 1.0+git20240119.335105d
- - - - -


2 changed files:

- LAshow.c
- align.c


Changes:

=====================================
LAshow.c
=====================================
@@ -700,7 +700,7 @@ int main(int argc, char *argv[])
                 Gap_Improver(aln,work);
               }
 
-#ifdef DEBUG_GAP_IMPROVER
+#ifndef DEBUG_GAP_IMPROVER
             aln->path->abpos += aoffs;
             aln->path->aepos += aoffs;
             aln->alen = alens;


=====================================
align.c
=====================================
@@ -5701,14 +5701,39 @@ void Gap_Improver(Alignment *aln, Work_Data *ework)
         { Fpos = -Fpos;
           Lpos = -Lpos;
 
+          if (x < Diag)
+            p = 0;
+          else
+            { m = t[x-Diag];
+              if (m < 0)
+                p = -m;
+              else
+                p = m+Fdag;
+            }
+
           while (A[Fpos-1] != B[(Fpos-Fdag)-1] && A[Fpos-1] != 4 && B[(Fpos-Fdag)-1] != 4)
-            { Fpos -= 1;
+            { if (Fpos <= p)
+                break;
+              Fpos -= 1;
 #ifdef BOX_STATS
               BxExtend += 1;
 #endif
             }
+
+          if (x >= T)
+            p = aln->alen;
+          else
+            { m = t[x];
+              if (m < 0)
+                p = -m;
+              else
+                p = m+d;
+            }
+
           while (A[Lpos] != B[Lpos-d] && A[Lpos] != 4 && B[Lpos-d] != 4)
-            { Lpos += 1;
+            { if (Lpos >= p)
+                break;
+              Lpos += 1;
 #ifdef BOX_STATS
               BxExtend += 1;
 #endif
@@ -5795,14 +5820,39 @@ void Gap_Improver(Alignment *aln, Work_Data *ework)
             }
         }
       else
-        { while (B[Fpos-1] != A[(Fpos+Fdag)-1] && B[Fpos-1] != 4 && A[(Fpos+Fdag)-1] != 4)
-            { Fpos -= 1;
+        { if (x < Diag)
+            p = 0;
+          else
+            { m = t[x-Diag];
+              if (m < 0)
+                p = -(m+Fdag);
+              else
+                p = m;
+            }
+
+          while (B[Fpos-1] != A[(Fpos+Fdag)-1] && B[Fpos-1] != 4 && A[(Fpos+Fdag)-1] != 4)
+            { if (Fpos <= p)
+                break;
+              Fpos -= 1;
 #ifdef BOX_STATS
               BxExtend += 1;
 #endif
             }
+
+          if (x >= T)
+            p = aln->blen;
+          else
+            { m = t[x];
+              if (m < 0)
+                p = -(m+d);
+              else
+                p = m;
+            }
+
           while (B[Lpos] != A[Lpos+d] && B[Lpos] != 4 && A[Lpos+d] != 4)
-            { Lpos += 1;
+            { if (Lpos >= p)
+                break;
+              Lpos += 1;
 #ifdef BOX_STATS
               BxExtend += 1;
 #endif
@@ -5873,15 +5923,19 @@ void Gap_Improver(Alignment *aln, Work_Data *ework)
                   h -= Diag;
                   k = h[m-Fdag];
                   if (k == 0)
-                    p -= 1;
+                    { p -= 1;
+#ifdef DEBUG_BACK
+                      printf(" (%d,%d,sub)",p,m);
+#endif
+                    }
                   else
                     { m -= k;
+#ifdef DEBUG_BACK
+                      printf(" (%d,%d,%d)",p,m,k);
+#endif
                       for (; k > 0; k--)
                         t[--y] = p;
                     }
-#ifdef DEBUG_BACK
-                  printf(" (%d,%d)",p,m);
-#endif
                 }
 #ifdef DEBUG_BACK
               printf("\n");



View it on GitLab: https://salsa.debian.org/med-team/daligner/-/commit/93ba6085f8d128b462a43a5dcce40cbdf595cc0a

-- 
View it on GitLab: https://salsa.debian.org/med-team/daligner/-/commit/93ba6085f8d128b462a43a5dcce40cbdf595cc0a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240121/bfdd4fbf/attachment-0001.htm>


More information about the debian-med-commit mailing list