@@ -76,15 +76,15 @@ public String getDescription()
7676 @ Override
7777 public AlignmentStep create (PipelineContext context )
7878 {
79- return new BWAAlignmentStep (this , context , new BWAWrapper (context .getLogger ()));
79+ return new BWAAlignmentStep <> (this , context , new BWAWrapper (context .getLogger ()));
8080 }
8181 }
8282
8383 public static class BWAAlignmentStep <WrapperType extends BWAWrapper > extends AbstractAlignmentPipelineStep <WrapperType > implements AlignmentStep
8484 {
8585 protected boolean _addBtwswArg = true ;
8686
87- public BWAAlignmentStep (AlignmentStepProvider provider , PipelineContext ctx , WrapperType wrapper )
87+ public BWAAlignmentStep (AlignmentStepProvider <?> provider , PipelineContext ctx , WrapperType wrapper )
8888 {
8989 super (provider , ctx , wrapper );
9090 }
@@ -104,7 +104,7 @@ public String getIndexCachedDirName(PipelineJob job)
104104 @ Override
105105 public IndexOutput createIndex (ReferenceGenome referenceGenome , File outputDir ) throws PipelineJobException
106106 {
107- getPipelineCtx ().getLogger ().info ("Creating BWA index" );
107+ getPipelineCtx ().getLogger ().info ("Creating " + getProvider (). getName () + " index" );
108108 IndexOutputImpl output = new IndexOutputImpl (referenceGenome );
109109
110110 File indexDir = new File (outputDir , getIndexCachedDirName (getPipelineCtx ().getJob ()));
@@ -139,7 +139,7 @@ public IndexOutput createIndex(ReferenceGenome referenceGenome, File outputDir)
139139 output .appendOutputs (referenceGenome .getWorkingFastaFile (), indexDir );
140140
141141 //recache if not already
142- AlignerIndexUtil .saveCachedIndex (hasCachedIndex , getPipelineCtx (), indexDir , "bwa" , referenceGenome );
142+ AlignerIndexUtil .saveCachedIndex (hasCachedIndex , getPipelineCtx (), indexDir , getIndexCachedDirName ( getPipelineCtx (). getJob ()) , referenceGenome );
143143
144144 return output ;
145145 }
0 commit comments