@@ -239,22 +239,22 @@ task illumina_demux {
239239 fi
240240
241241 # Parse the lane count & run ID from RunInfo.xml file
242- lane_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@LaneCount)" $RUNINFO_FILE )
242+ lane_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@LaneCount)" " $RUNINFO_FILE " )
243243 if [ -z "$lane_count " ]; then
244244 echo "Could not parse LaneCount from RunInfo.xml. Please check RunInfo.xml is properly formatted"
245245 fi
246246
247- surface_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@SurfaceCount)" $RUNINFO_FILE )
247+ surface_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@SurfaceCount)" " $RUNINFO_FILE " )
248248 if [ -z "$surface_count " ]; then
249249 echo "Could not parse SurfaceCount from RunInfo.xml. Please check RunInfo.xml is properly formatted"
250250 fi
251251
252- swath_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@SwathCount)" $RUNINFO_FILE )
252+ swath_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@SwathCount)" " $RUNINFO_FILE " )
253253 if [ -z "$swath_count " ]; then
254254 echo "Could not parse SwathCount from RunInfo.xml. Please check RunInfo.xml is properly formatted"
255255 fi
256256
257- tile_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@TileCount)" $RUNINFO_FILE )
257+ tile_count = $(xmllint --xpath "string(//Run/FlowcellLayout/@TileCount)" " $RUNINFO_FILE " )
258258 if [ -z "$tile_count " ]; then
259259 echo "Could not parse TileCount from RunInfo.xml. Please check RunInfo.xml is properly formatted"
260260 fi
@@ -366,9 +366,9 @@ task illumina_demux {
366366 $FLOWCELL_DIR \
367367 ~{lane } \
368368 . \
369- ~{'--sampleSheet=' + samplesheet } \
370- ~{'--runInfo=' + runinfo } \
371- ~{'--sequencing_center=' + sequencingCenter } \
369+ ~{'--sampleSheet=" ' + samplesheet + '"' } \
370+ ~{'--runInfo=" ' + runinfo + '"' } \
371+ ~{'--sequencing_center=" ' + sequencingCenter + '"' } \
372372 --outMetrics =metrics.txt \
373373 --commonBarcodes =barcodes.txt \
374374 ~{'--flowcell=' + flowcell } \
@@ -436,7 +436,7 @@ task illumina_demux {
436436 ~{'--predemux_trim_r1_3prime ' + inner_barcode_predemux_trim_r1_3prime } \
437437 ~{'--predemux_trim_r2_5prime ' + inner_barcode_predemux_trim_r2_5prime } \
438438 ~{'--predemux_trim_r2_3prime ' + inner_barcode_predemux_trim_r2_3prime } \
439- ~{'--sampleSheet=' + samplesheet } \
439+ ~{'--sampleSheet=" ' + samplesheet + '"' } \
440440 "--runInfo=${RUNINFO_FILE} " \
441441 --illuminaRunDirectory =$FLOWCELL_DIR \
442442 $demux_threads \
@@ -843,7 +843,7 @@ task get_illumina_run_metadata {
843843 illumina --version | tee VERSION
844844
845845 illumina illumina_metadata \
846- --runinfo ~{runinfo_xml } \
846+ --runinfo " ~{runinfo_xml}" \
847847 ~{'--sequencing_center ' + sequencing_center } \
848848 --out_runinfo runinfo.json \
849849 --loglevel =DEBUG
@@ -969,15 +969,15 @@ task demux_fastqs {
969969 illumina --version | tee VERSION
970970
971971 illumina splitcode_demux_fastqs \
972- --fastq_r1 ~{fastq_r1 } \
973- ~{'--fastq_r2 ' + fastq_r2 } \
974- --samplesheet ~{samplesheet } \
975- --runinfo ~{runinfo_xml } \
976- ~{'--sequencing_center ' + sequencingCenter } \
972+ --fastq_r1 " ~{fastq_r1}" \
973+ ~{'--fastq_r2 " ' + fastq_r2 + '"' } \
974+ --samplesheet " ~{samplesheet}" \
975+ --runinfo " ~{runinfo_xml}" \
976+ ~{'--sequencing_center " ' + sequencingCenter + '"' } \
977977 --outdir . \
978978 --append_run_id \
979- --out_meta_by_sample ~{fastq_basename }-meta_by_sample.json \
980- --out_meta_by_filename ~{fastq_basename }-meta_by_filename.json \
979+ --out_meta_by_sample " ~{fastq_basename}-meta_by_sample.json" \
980+ --out_meta_by_filename " ~{fastq_basename}-meta_by_filename.json" \
981981 --loglevel =DEBUG
982982
983983 # Workaround: create empty JSON files if Python code didn't produce them (zero-read FASTQs)
0 commit comments