@@ -347,8 +347,11 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
347347
348348 // Run GenotypeGVCFs individually:
349349 List <File > intermediateVcfs = new ArrayList <>();
350+ int idx = 0 ;
350351 for (File input : filesToProcess )
351352 {
353+ idx ++;
354+ ctx .getJob ().setStatus (PipelineJob .TaskStatus .running , "Running GenotypeGVCFs: " + idx + " of " + filesToProcess .size ());
352355 File tempOutput = new File (ctx .getOutputDir (), SequenceAnalysisService .get ().getUnzippedBaseName (input .getName ()) + ".temp.vcf.gz" );
353356 processOneInput (ctx , job , genome , input , tempOutput , forceCallSitesFile );
354357 ctx .getFileManager ().addIntermediateFile (tempOutput );
@@ -359,6 +362,7 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
359362
360363 // Create the union of all sites to force calling:
361364 ctx .getLogger ().info ("Creating VCF with union of sites" );
365+ ctx .getJob ().setStatus (PipelineJob .TaskStatus .running , "Generating union of sites" );
362366 File sitesOnlyVcf = new File (ctx .getWorkingDirectory (), "sitesOnlyVcfForMerge.vcf.gz" );
363367 DISCVRSeqRunner runner = new DISCVRSeqRunner (ctx .getLogger ());
364368 List <String > mergeArgs = new ArrayList <>(runner .getBaseArgs ("MergeVariantSites" ));
@@ -379,8 +383,11 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
379383
380384 // Run GenotypeGVCFs individually:
381385 List <File > intermediateVcfsForcedSites = new ArrayList <>();
386+ idx = 0 ;
382387 for (File input : filesToProcess )
383388 {
389+ idx ++;
390+ ctx .getJob ().setStatus (PipelineJob .TaskStatus .running , "Second GenotypeGVCFs: " + idx + " of " + filesToProcess .size ());
384391 File tempOutput = new File (ctx .getOutputDir (), SequenceAnalysisService .get ().getUnzippedBaseName (input .getName ()) + ".tempForceSites.vcf.gz" );
385392 processOneInput (ctx , job , genome , input , tempOutput , sitesOnlyVcf );
386393 ctx .getFileManager ().addIntermediateFile (tempOutput );
@@ -390,6 +397,7 @@ private File runGenotypeGVCFs(PipelineJob job, JobContext ctx, ProcessVariantsHa
390397 }
391398
392399 // Perform final merge:
400+ ctx .getJob ().setStatus (PipelineJob .TaskStatus .running , "Merging final VCFs" );
393401 new MergeVcfsAndGenotypesWrapper (ctx .getLogger ()).execute (genome .getWorkingFastaFile (), intermediateVcfsForcedSites , outputVcf , null );
394402 }
395403 else
0 commit comments