Skip to content

Commit aa223ba

Browse files
committed
Update to nimble para parsing
1 parent 93508f2 commit aa223ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

singlecell/src/org/labkey/singlecell/pipeline/singlecell/AppendNimble.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.labkey.singlecell.pipeline.singlecell;
22

3+
import org.apache.commons.lang3.StringUtils;
34
import org.json.JSONArray;
45
import org.json.JSONObject;
56
import org.labkey.api.pipeline.PipelineJobException;
@@ -101,10 +102,10 @@ protected Chunk createParamChunk(SequenceOutputHandler.JobContext ctx, List<Seur
101102
}
102103

103104
int genomeId = arr.getInt(0);
104-
Integer maxAmbiguityAllowed2 = arr.get(2) == null ? null : arr.getInt(2);
105+
String maxAmbiguityAllowed2 = arr.get(2) == null ? null : StringUtils.trimToNull(String.valueOf(arr.get(2)));
105106
if (maxAmbiguityAllowed2 == null)
106107
{
107-
maxAmbiguityAllowed2 = maxAmbiguityAllowed;
108+
maxAmbiguityAllowed2 = String.valueOf(maxAmbiguityAllowed);
108109
}
109110

110111
ret.bodyLines.add("\t" + delim + "'" + genomeId + "' = " + (maxAmbiguityAllowed2 == null ? "Inf" : maxAmbiguityAllowed2));

0 commit comments

Comments
 (0)