Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/abyss/, sci-biology/abyss/files/
Date: Wed, 14 Apr 2021 13:07:34
Message-Id: 1618405632.f22bb3be4e8f283831edc5f4c38a839442355644.mmokrejs@gentoo
1 commit: f22bb3be4e8f283831edc5f4c38a839442355644
2 Author: Martin Mokrejs <mmokrejs <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 14 13:07:12 2021 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Wed Apr 14 13:07:12 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f22bb3be
7
8 sci-biology/abyss: fix PathConsensus crashes
9
10 Fixes: https://github.com/bcgsc/abyss/issues/267
11 Fix crashes of PathConsensus during long-scaffolding
12 step per @sjackman suggestions.
13
14 Add back 2.2.5 version which does not have yet the
15 RResolver which addition broke the paired de Bruijn
16 graph assembly approach and since that only the
17 Bloom filter-based approach works in 2.3.0.
18
19 Package-Manager: Portage-3.0.18, Repoman-3.0.3
20 Signed-off-by: Martin Mokrejs <mmokrejs <AT> gmail.com>
21
22 .../abyss/{abyss-2.3.0.ebuild => abyss-2.2.5-r1.ebuild} | 4 ++++
23 .../abyss/{abyss-2.3.0.ebuild => abyss-2.3.0-r1.ebuild} | 4 ++++
24 sci-biology/abyss/files/abyss-2.2.5-ContigProperties.h.patch | 11 +++++++++++
25 .../abyss/files/abyss-2.2.5-PathConsensus-assert.patch | 11 +++++++++++
26 4 files changed, 30 insertions(+)
27
28 diff --git a/sci-biology/abyss/abyss-2.3.0.ebuild b/sci-biology/abyss/abyss-2.2.5-r1.ebuild
29 similarity index 91%
30 copy from sci-biology/abyss/abyss-2.3.0.ebuild
31 copy to sci-biology/abyss/abyss-2.2.5-r1.ebuild
32 index 95438d3b4..d9134813b 100644
33 --- a/sci-biology/abyss/abyss-2.3.0.ebuild
34 +++ b/sci-biology/abyss/abyss-2.2.5-r1.ebuild
35 @@ -27,6 +27,10 @@ DEPEND="${RDEPEND}
36 dev-lang/ghc
37 )"
38
39 +PATCHES=( "${FILESDIR}"/${PN}-2.2.5-PathConsensus-assert.patch
40 + "${FILESDIR}"/${PN}-2.2.5-ContigProperties.h.patch
41 + )
42 +
43 # todo: --enable-maxk=N configure option
44 # todo: fix automagic mpi toggling
45
46
47 diff --git a/sci-biology/abyss/abyss-2.3.0.ebuild b/sci-biology/abyss/abyss-2.3.0-r1.ebuild
48 similarity index 91%
49 rename from sci-biology/abyss/abyss-2.3.0.ebuild
50 rename to sci-biology/abyss/abyss-2.3.0-r1.ebuild
51 index 95438d3b4..d9134813b 100644
52 --- a/sci-biology/abyss/abyss-2.3.0.ebuild
53 +++ b/sci-biology/abyss/abyss-2.3.0-r1.ebuild
54 @@ -27,6 +27,10 @@ DEPEND="${RDEPEND}
55 dev-lang/ghc
56 )"
57
58 +PATCHES=( "${FILESDIR}"/${PN}-2.2.5-PathConsensus-assert.patch
59 + "${FILESDIR}"/${PN}-2.2.5-ContigProperties.h.patch
60 + )
61 +
62 # todo: --enable-maxk=N configure option
63 # todo: fix automagic mpi toggling
64
65
66 diff --git a/sci-biology/abyss/files/abyss-2.2.5-ContigProperties.h.patch b/sci-biology/abyss/files/abyss-2.2.5-ContigProperties.h.patch
67 new file mode 100644
68 index 000000000..95181f082
69 --- /dev/null
70 +++ b/sci-biology/abyss/files/abyss-2.2.5-ContigProperties.h.patch
71 @@ -0,0 +1,11 @@
72 +--- abyss-2.2.5/Common/ContigProperties.h.ori 2020-09-18 20:42:12.000000000 +0200
73 ++++ abyss-2.2.5/Common/ContigProperties.h 2021-04-14 12:31:23.682158000 +0200
74 +@@ -171,7 +171,7 @@
75 + template <typename T>
76 + ContigProperties& operator+=(ContigProperties& a, const T& b)
77 + {
78 +- assert((int)a.length + (int)b.distance > 0);
79 ++ assert((int)a.length + (int)b.distance >= 0);
80 + a.length += b.distance;
81 + return a;
82 + }
83
84 diff --git a/sci-biology/abyss/files/abyss-2.2.5-PathConsensus-assert.patch b/sci-biology/abyss/files/abyss-2.2.5-PathConsensus-assert.patch
85 new file mode 100644
86 index 000000000..754e25acc
87 --- /dev/null
88 +++ b/sci-biology/abyss/files/abyss-2.2.5-PathConsensus-assert.patch
89 @@ -0,0 +1,11 @@
90 +--- abyss-2.2.5/MergePaths/PathConsensus.cpp 2020-09-18 20:42:12.000000000 +0200
91 ++++ abyss-2.2.5/MergePaths/PathConsensus.cpp 2021-04-12 22:26:28.780547000 +0200
92 +@@ -379,7 +379,7 @@
93 + unsigned overlap, Sequence& seq,
94 + const Sequence& s, const ContigNode& node, const Path& path)
95 + {
96 +- assert(s.length() > overlap);
97 ++ assert(s.length() >= overlap);
98 + Sequence ao;
99 + Sequence bo(s, 0, overlap);
100 + Sequence o;