Skip to content

Commit 13f01cf

Browse files
committed
Allow GenotypeGVCFs to disable file locking for TileDB
1 parent 9641877 commit 13f01cf

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

SequenceAnalysis/resources/web/SequenceAnalysis/panel/VariantProcessingPanel.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ Ext4.define('SequenceAnalysis.panel.VariantProcessingPanel', {
236236
label: 'Allow Old RMS Mapping Data',
237237
description: 'This must be checked to allow processing of gVCFs generated by GATK3.',
238238
defaultValue: false
239+
},{
240+
fieldXtype: 'checkbox',
241+
name: 'disableFileLocking',
242+
label: 'Disable File Locking',
243+
description: 'This applies to GenomicsDB inputs only. 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.',
244+
defaultValue: true
239245
},{
240246
fieldXtype: 'checkbox',
241247
name: 'doCopyInputs',

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/GenotypeGVCFHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
367367
});
368368
}
369369

370+
if (ctx.getParams().optBoolean("disableFileLocking", false))
371+
{
372+
ctx.getLogger().debug("Disabling file locking for TileDB");
373+
wrapper.addToEnvironment("TILEDB_DISABLE_FILE_LOCKING", "1");
374+
}
375+
370376
wrapper.execute(genome.getSourceFastaFile(), outputVcf, toolParams, inputVcf);
371377

372378
action.addOutput(outputVcf, "VCF", outputVcf.exists(), true);

0 commit comments

Comments
 (0)