A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marbl/canu/commit/afdf6db558a8c29a91e99c5c72e13acfdf58f028 below:

Fix crash detecting cycle when both reads are not in a tig. Issue #2… · marbl/canu@afdf6db · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed Original file line number Diff line number Diff line change

@@ -109,8 +109,12 @@ bool isCycle(TigVector &tigs,

109 109

BestEdgeOverlap *next = (lRead->position.isForward() == true) ? (OG->getBestEdgeOverlap(lRead->ident, true)) : (OG->getBestEdgeOverlap(lRead->ident, false));

110 110 111 111

// if we have no best edges or they don't point to a single tig, no issue

112 -

if (!prev->isValid() || !next->isValid() || tigs.inUnitig(prev->readId()) != tigs.inUnitig(next->readId()))

113 -

return false;

112 +

if ( (prev->isValid() == false) ||

113 +

(tigs.inUnitig(prev->readId()) == 0) ||

114 +

(next->isValid() == false) ||

115 +

(tigs.inUnitig(next->readId()) == 0) ||

116 +

(tigs.inUnitig(prev->readId()) != tigs.inUnitig(next->readId())))

117 +

return false;

114 118 115 119

// find the reads corresponding to our best

116 120

if (logFileFlagSet(LOG_ORPHAN_DETAIL))

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4