File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/groovy/com/milaboratory/migec Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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++ )
You can’t perform that action at this time.
0 commit comments