Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfenne committed Nov 27, 2023
1 parent 4c0c101 commit 4d43e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ object GroupReadsByUmi {
.map { case (_, idx) => idx }
.getOrElse(-1)

if (searchFromIdx > 0) {
if (searchFromIdx >= 0) {
val hits = taskSupport match {
case None =>
orderedNodes
.drop(searchFromIdx + 1)
.drop(searchFromIdx)
.filter(other => !other.assigned && matches(root.umi, other.umi))
case Some(ts) =>
orderedNodes
.drop(searchFromIdx + 1)
.drop(searchFromIdx)

Check warning on line 307 in src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala

View check run for this annotation

Codecov / codecov/patch

src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala#L307

Added line #L307 was not covered by tests
.parWith(ts)
.filter(other => !other.assigned && matches(root.umi, other.umi))
.seq

Check warning on line 310 in src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala

View check run for this annotation

Codecov / codecov/patch

src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala#L309-L310

Added lines #L309 - L310 were not covered by tests
Expand Down

0 comments on commit 4d43e87

Please sign in to comment.