+6
-2
lines changedFilter options
+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