Skip to content

Commit afb61ad

Browse files
committed
Nimble score param is a string when null
1 parent 50368af commit afb61ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

singlecell/src/org/labkey/singlecell/run/NimbleHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ public NimbleGenome(String genomeStr, int maxHitsToReport) throws PipelineJobExc
483483
genomeId = arr.getInt(0);
484484
template = arr.getString(1);
485485
doGroup = arr.getBoolean(2);
486-
scoreThreshold = arr.length() > 3 ? arr.getInt(3) : -1;
486+
487+
String rawScore = arr.length() > 3 ? StringUtils.trimToNull(arr.getString(3)) : null;
488+
scoreThreshold = rawScore == null ? -1 : Integer.parseInt(rawScore);
487489

488490
this.maxHitsToReport = maxHitsToReport;
489491
}

0 commit comments

Comments
 (0)