From 4d43e87e01d1a775497fb2115574008fca47898e Mon Sep 17 00:00:00 2001 From: tfenne Date: Mon, 27 Nov 2023 15:15:57 -0700 Subject: [PATCH] Fix failing tests. --- .../scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala b/src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala index 9a413dbf7..1fd3eaa7b 100644 --- a/src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala +++ b/src/main/scala/com/fulcrumgenomics/umi/GroupReadsByUmi.scala @@ -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) .parWith(ts) .filter(other => !other.assigned && matches(root.umi, other.umi)) .seq