Skip to content

Commit e1f30a1

Browse files
committed
Support GenomicsDB POSIX optimizations flag
1 parent 84087f2 commit e1f30a1

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
563563
GenomicsDbImportWrapper wrapper = new GenomicsDbImportWrapper(ctx.getLogger());
564564
List<String> options = new ArrayList<>(getClientCommandArgs(ctx.getParams()));
565565

566+
if (ctx.getParams().optBoolean("sharedPosixOptimizations", false))
567+
{
568+
options.add("--genomicsdb-shared-posixfs-optimizations");
569+
}
570+
566571
if (ctx.getParams().optBoolean("disableFileLocking", false))
567572
{
568573
ctx.getLogger().debug("Disabling file locking for TileDB");

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public GenomicsDBAppendHandler()
3232
ToolParameterDescriptor.create("disableFileLocking", "Disable File Locking", "Certain filesystems do not support file locking, including NFS and Lustre. If your data will be processed on a filesystem that does not support locking, check this.", "checkbox", new JSONObject(){{
3333
put("checked", true);
3434
}}, true),
35+
ToolParameterDescriptor.create("sharedPosixOptimizations", "Use Shared Posix Optimizations", "This enabled optimizations for large shared filesystems, such as lustre.", "checkbox", new JSONObject(){{
36+
put("checked", true);
37+
}}, true),
3538
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(){{
3639
put("defaultValue", "chunked");
3740
}}, false)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public GenomicsDBImportHandler()
2727
ToolParameterDescriptor.create("disableFileLocking", "Disable File Locking", "Certain filesystems do not support file locking, including NFS and Lustre. If your data will be processed on a filesystem that does not support locking, check this.", "checkbox", new JSONObject(){{
2828
put("checked", true);
2929
}}, true),
30+
ToolParameterDescriptor.create("sharedPosixOptimizations", "Use Shared Posix Optimizations", "This enabled optimizations for large shared filesystems, such as lustre.", "checkbox", new JSONObject(){{
31+
put("checked", true);
32+
}}, true),
3033
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(){{
3134
put("defaultValue", "chunked");
3235
}}, false)

0 commit comments

Comments
 (0)