Skip to content

Commit 4916e8e

Browse files
committed
simplification following review by @dpark01
1 parent f288aaf commit 4916e8e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pipes/WDL/tasks/tasks_demux.wdl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ task illumina_demux {
294294
295295
illumina.py flowcell_metadata --inDir $FLOWCELL_DIR flowcellMetadataFile.tsv
296296
297-
# output machine model and lane count
298-
grep "machine" flowcellMetadataFile.tsv | cut -f2 | tee MACHINE_MODEL
299-
grep "lane_count" flowcellMetadataFile.tsv | cut -f2 | tee LANE_COUNT
300-
301297
mkdir -p unmatched
302298
mv Unmatched.bam unmatched/
303299
@@ -359,8 +355,8 @@ task illumina_demux {
359355
Int runtime_sec = ceil(read_float("UPTIME_SEC"))
360356
Int cpu_load_15min = ceil(read_float("LOAD_15M"))
361357

362-
String instrument_model = read_string("MACHINE_MODEL")
363-
String flowcell_lane_count = read_string("LANE_COUNT")
358+
String instrument_model = read_json("~{out_base}-runinfo.json")["sequencer_model"]
359+
String flowcell_lane_count = read_json("~{out_base}-runinfo.json")["lane_count"]
364360

365361
String viralngs_version = read_string("VERSION")
366362

0 commit comments

Comments
 (0)