@@ -504,7 +504,7 @@ else if (lane.isEmpty())
504504 }
505505 }
506506
507- outputs = barcoder .demultiplexPairs (fastqPairs , new ArrayList <Readset >(readsetsForGroup ), barcodeModels , outputDir );
507+ outputs = barcoder .demultiplexPairs (fastqPairs , new ArrayList <>(readsetsForGroup ), barcodeModels , outputDir );
508508 for (File output : outputs )
509509 {
510510 getHelper ().getFileManager ().addOutput (barcodeAction , SequenceTaskHelper .BARCODED_FASTQ_OUTPUTNAME , output );
@@ -845,7 +845,7 @@ private File normalizeFastqSequence(File input, List<RecordedAction> actions) th
845845
846846 getJob ().getLogger ().info ("Normalizing to Gzipped FASTQ: " + input .getName ());
847847
848- getHelper ().getFileManager ().addInput (action , getHelper () .SEQUENCE_DATA_INPUT_NAME , input );
848+ getHelper ().getFileManager ().addInput (action , SequenceTaskHelper .SEQUENCE_DATA_INPUT_NAME , input );
849849 String basename = SequenceTaskHelper .getUnzippedBaseName (input .getName ());
850850
851851 SequenceUtil .FILETYPE type = SequenceUtil .inferType (input );
@@ -990,18 +990,22 @@ else if (type.equals(SequenceUtil.FILETYPE.sff))
990990
991991 if (!input .getPath ().equals (output .getPath ()))
992992 {
993- if (getHelper ().getSettings ().isDoBarcode () )
993+ if (getHelper ().getFileManager ().getInputFileTreatment () == TaskFileManager . InputFileTreatment . delete )
994994 {
995- if (getHelper ().getFileManager ().getInputFileTreatment () == TaskFileManager . InputFileTreatment . delete )
995+ if (! getHelper ().getSettings ().isDoBarcode () )
996996 {
997997 getJob ().getLogger ().debug ("Marking input as intermediate file: " + input .getPath ());
998998 getHelper ().getFileManager ().addIntermediateFile (input );
999999 }
10001000 else
10011001 {
1002- getJob ().getLogger ().debug ( "Inputs were not selected for deletion, not marking as intermediate : " + input .getPath ());
1002+ getJob ().getLogger ().info ( "Because demultiplexing was used, the original input files will not be deleted : " + input .getPath ());
10031003 }
10041004 }
1005+ else
1006+ {
1007+ getJob ().getLogger ().debug ("Inputs were not selected for deletion, not marking as intermediate: " + input .getPath ());
1008+ }
10051009 }
10061010
10071011 if (workingDir .list ().length == 0 )
0 commit comments