Skip to content

Commit 0631638

Browse files
committed
Set genomicsdbBatchSize default value to null
1 parent 26c7446 commit 0631638

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/AbstractGenomicsDBImportHandler.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected static List<ToolParameterDescriptor> getToolParameters(boolean addCopy
107107
}}, true),
108108
ToolParameterDescriptor.create("genomicsdbBatchSize", "Consolidate Batch Size", "This is passed to --batch-size of consolidate_genomicsdb_array, and can reduce memory usage.", "ldk-numberfield", new JSONObject(){{
109109
put("minValue", 0);
110-
}}, 50),
110+
}}, null),
111111
ToolParameterDescriptor.create("scatterGather", "Scatter/Gather Options", "If selected, this job will be divided to run job per chromosome. The final step will take the VCF from each intermediate step and combined to make a final VCF file.", "sequenceanalysis-variantscattergatherpanel", new JSONObject(){{
112112
put("defaultValue", "chunked");
113113
}}, false)
@@ -774,9 +774,12 @@ private void doConsolidate(JobContext ctx, File workingDestinationWorkspaceFolde
774774
baseArgs.add(String.valueOf(ctx.getParams().get("genomicsdbSegmentSize")));
775775
}
776776

777-
int batchSize = ctx.getParams().optInt("genomicsdbBatchSize", 50);
778-
baseArgs.add("-b");
779-
baseArgs.add(String.valueOf(batchSize));
777+
int batchSize = ctx.getParams().optInt("genomicsdbBatchSize", 0);
778+
if (batchSize > 0)
779+
{
780+
baseArgs.add("-b");
781+
baseArgs.add(String.valueOf(batchSize));
782+
}
780783

781784
List<Interval> intervals = getIntervalsOrFullGenome(ctx, genome);
782785
for (Interval i : intervals)

0 commit comments

Comments
 (0)