@@ -202,7 +202,7 @@ else if (genomeIds.isEmpty())
202202 throw new PipelineJobException ("No genome ID found for inputs" );
203203 }
204204
205- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.forceSitesFile" ) != null )
205+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.forceSitesFile" ))
206206 {
207207 int dataId = ctx .getParams ().getInt ("variantCalling.GenotypeGVCFs.forceSitesFile" );
208208 ExpData data = ExperimentService .get ().getExpData (dataId );
@@ -215,7 +215,7 @@ else if (genomeIds.isEmpty())
215215 ctx .getSequenceSupport ().cacheExpData (data );
216216 }
217217
218- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.exclude_intervals" ) != null )
218+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.exclude_intervals" ))
219219 {
220220 int dataId = ctx .getParams ().getInt ("variantCalling.GenotypeGVCFs.exclude_intervals" );
221221 ExpData data = ExperimentService .get ().getExpData (dataId );
@@ -306,7 +306,7 @@ public void processFilesOnWebserver(PipelineJob job, SequenceAnalysisJobSupport
306306
307307 private String getBasename (JobContext ctx )
308308 {
309- String basename = ctx .getParams ().get ("variantCalling.GenotypeGVCFs.fileBaseName" ) != null ? ctx .getParams ().getString ("variantCalling.GenotypeGVCFs.fileBaseName" ) : "CombinedGenotypes" ;
309+ String basename = ! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.fileBaseName" ) ? ctx .getParams ().getString ("variantCalling.GenotypeGVCFs.fileBaseName" ) : "CombinedGenotypes" ;
310310 basename = basename .replaceAll (".vcf.gz$" , "" );
311311 basename = basename .replaceAll (".vcf$" , "" );
312312
@@ -363,7 +363,7 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
363363 }
364364
365365 File forceCallSitesFile = null ;
366- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.forceSitesFile" ) != null )
366+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.forceSitesFile" ))
367367 {
368368 forceCallSitesFile = ctx .getSequenceSupport ().getCachedData (ctx .getParams ().getInt ("variantCalling.GenotypeGVCFs.forceSitesFile" ));
369369 if (!forceCallSitesFile .exists ())
@@ -375,7 +375,7 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
375375 }
376376
377377 int maxSamplesPerWorkspace = 500 ;
378- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.maxSamplesPerWorkspace" ) != null )
378+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.maxSamplesPerWorkspace" ))
379379 {
380380 maxSamplesPerWorkspace = ctx .getParams ().getInt ("variantCalling.GenotypeGVCFs.maxSamplesPerWorkspace" );
381381 }
@@ -629,7 +629,7 @@ private void processOneInput(JobContext ctx, PipelineJob job, ReferenceGenome ge
629629
630630 GenotypeGVCFsWrapper wrapper = new GenotypeGVCFsWrapper (job .getLogger ());
631631 List <String > toolParams = new ArrayList <>();
632- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.stand_call_conf" ) != null )
632+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.stand_call_conf" ))
633633 {
634634 toolParams .add ("-stand-call-conf" );
635635 toolParams .add (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.stand_call_conf" ).toString ());
@@ -642,13 +642,13 @@ private void processOneInput(JobContext ctx, PipelineJob job, ReferenceGenome ge
642642 toolParams .add ("-AX" );
643643 toolParams .add ("ExcessHet" );
644644
645- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.maxGenotypeCount" ) != null )
645+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.maxGenotypeCount" ))
646646 {
647647 toolParams .add ("-max-genotype-count" );
648648 toolParams .add (String .valueOf (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.maxGenotypeCount" )));
649649 }
650650
651- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.exclude_intervals" ) != null )
651+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.exclude_intervals" ))
652652 {
653653 toolParams .add ("-XL" );
654654 int dataId = Integer .parseInt (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.exclude_intervals" ).toString ());
@@ -663,7 +663,7 @@ private void processOneInput(JobContext ctx, PipelineJob job, ReferenceGenome ge
663663 toolParams .add (bed .getPath ());
664664 }
665665
666- if (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.max_alternate_alleles" ) != null )
666+ if (! ctx .getParams ().isNull ("variantCalling.GenotypeGVCFs.max_alternate_alleles" ))
667667 {
668668 toolParams .add ("--max-alternate-alleles" );
669669 toolParams .add (ctx .getParams ().get ("variantCalling.GenotypeGVCFs.max_alternate_alleles" ).toString ());
0 commit comments