[med-svn] [Git][med-team/last-align][master] 4 commits: New upstream version 1169
Nilesh Patra
gitlab at salsa.debian.org
Wed Dec 23 06:54:00 GMT 2020
Nilesh Patra pushed to branch master at Debian Med / last-align
Commits:
6797dabf by Nilesh Patra at 2020-12-23T12:12:40+05:30
New upstream version 1169
- - - - -
0427caff by Nilesh Patra at 2020-12-23T12:12:40+05:30
routine-update: New upstream version
- - - - -
ed4ec1c5 by Nilesh Patra at 2020-12-23T12:12:43+05:30
Update upstream source from tag 'upstream/1169'
Update to upstream version '1169'
with Debian dir fab931115ea58abc8a2185ff02cd322b86a7f2a7
- - - - -
50d735d4 by Nilesh Patra at 2020-12-23T12:13:08+05:30
routine-update: Ready to upload to unstable
- - - - -
5 changed files:
- ChangeLog.txt
- debian/changelog
- scripts/last-train
- src/LastEvaluer.cc
- src/version.hh
Changes:
=====================================
ChangeLog.txt
=====================================
@@ -1,9 +1,15 @@
+2020-12-23 Martin C. Frith <Martin C. Frith>
+
+ * scripts/last-train, src/LastEvaluer.cc:
+ Try to fix floating-point infinite loops
+ [829c63f50494] [tip]
+
2020-12-15 Martin C. Frith <Martin C. Frith>
* src/Alignment.cc, src/lastal.cc, test/last-test.out, test/last-
test.sh:
New frameshifts: fix print precision of score
- [abed5cbf2f29] [tip]
+ [abed5cbf2f29]
2020-12-11 Martin C. Frith <Martin C. Frith>
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+last-align (1169-1) unstable; urgency=medium
+
+ * New upstream version
+
+ -- Nilesh Patra <npatra974 at gmail.com> Wed, 23 Dec 2020 12:13:08 +0530
+
last-align (1168-1) unstable; urgency=medium
* New upstream version
=====================================
scripts/last-train
=====================================
@@ -29,24 +29,24 @@ def myOpen(fileName): # faster than fileinput
def rootOfIncreasingFunction(func, lowerBound, upperBound, args):
# Find x such that func(x, *args) == 0
+ gap = upperBound - lowerBound
while True:
- mid = 0.5 * (lowerBound + upperBound)
- if mid <= lowerBound or mid >= upperBound:
+ gap *= 0.5
+ mid = lowerBound + gap
+ if mid <= lowerBound:
return mid
if func(mid, *args) < 0:
lowerBound = mid
- else:
- upperBound = mid
def rootOfDecreasingFunction(func, lowerBound, upperBound, args):
# Find x such that func(x, *args) == 0
+ gap = upperBound - lowerBound
while True:
- mid = 0.5 * (lowerBound + upperBound)
- if mid <= lowerBound or mid >= upperBound:
+ gap *= 0.5
+ mid = lowerBound + gap
+ if mid <= lowerBound:
return mid
- if func(mid, *args) < 0:
- upperBound = mid
- else:
+ if func(mid, *args) > 0:
lowerBound = mid
def homogeneousLetterFreqs(scale, matScores):
=====================================
src/LastEvaluer.cc
=====================================
@@ -476,14 +476,13 @@ double LastEvaluer::minScore(double queryLettersPerRandomAlignment) const {
const Sls::ALP_set_of_parameters &p = evaluer.parameters();
double x = queryLettersPerRandomAlignment * databaseSeqNum;
double beg = 0;
- double end = log(x * databaseSeqLen * p.K) / p.lambda;
+ double len = log(x * databaseSeqLen * p.K) / p.lambda;
while (1) {
- double mid = (beg + end) / 2;
- if (mid <= beg || mid >= end) return mid;
- if (evaluer.evalue(mid, huge, databaseSeqLen) < huge / x)
- end = mid;
- else
+ len /= 2;
+ double mid = beg + len;
+ if (mid <= beg) return mid;
+ if (evaluer.evalue(mid, huge, databaseSeqLen) >= huge / x)
beg = mid;
}
}
=====================================
src/version.hh
=====================================
@@ -1 +1 @@
-"1168"
+"1169"
View it on GitLab: https://salsa.debian.org/med-team/last-align/-/compare/bdbe013d86b97d323468dc44bef2bfafaa6767dc...50d735d422de5a1321b5744744b7a1dc15fb3d69
--
View it on GitLab: https://salsa.debian.org/med-team/last-align/-/compare/bdbe013d86b97d323468dc44bef2bfafaa6767dc...50d735d422de5a1321b5744744b7a1dc15fb3d69
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/20201223/423b855f/attachment-0001.html>
More information about the debian-med-commit
mailing list