Skip to content

Commit 0fbd27b

Browse files
committed
Remove empty values form pangolin metrics
1 parent 1b0450b commit 0fbd27b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/PangolinHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ public static Map<String, String> runPangolin(File workDir, File consensusFasta,
415415
Map<String, String> map = new HashMap<>();
416416
for (String key : ret.keySet())
417417
{
418-
String val = StringUtils.join(ret.get(key), ",");
418+
Set<String> vals = ret.get(key);
419+
vals.remove("");
420+
String val = StringUtils.join(vals, ",");
419421
if ("PangolinVersions".equals(key))
420422
{
421423
val = StringUtils.join(new HashSet<>(Arrays.asList(val.split(","))), ",");

0 commit comments

Comments
 (0)