Skip to content

Commit 9d46ef9

Browse files
committed
Yet another minor fix
1 parent ba90f24 commit 9d46ef9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/groovy/com/milaboratory/migec/CdrBlast.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ inputFileNames.each { inputFileName ->
636636
qual = qual.substring(clonotypeData.cdrFrom, clonotypeData.cdrTo)
637637

638638
// Increment counters if quality is good
639-
if (Util.qualFromString(qual).min() >= qualThreshold) {
639+
if (Util.minQual(qual) >= qualThreshold) {
640640
clonotypeData.counts[0]++
641641
goodEvents++
642642
clonotypeData.counts[2] += increment

src/main/groovy/com/milaboratory/migec/Util.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ class Util {
9393
(int) symbol - 33
9494
}
9595

96+
static byte minQual(String qual) {
97+
qualFromString(qual).collect().min()
98+
}
99+
96100
static byte[] qualFromString(String qual) {
97101
byte[] qualArr = new byte[qual.length()]
98102
for (int i = 0; i < qual.length(); i++)

0 commit comments

Comments
 (0)