From a886a62883b7700e05b2612d53b51b134bf730de Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Fri, 6 Sep 2024 14:56:59 -0500 Subject: [PATCH] fix: add `count` input to the demo WDL. (#25) --- crankshaft/demo.json | 3 ++- crankshaft/demo.wdl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crankshaft/demo.json b/crankshaft/demo.json index bd9a9d5..c347c8d 100644 --- a/crankshaft/demo.json +++ b/crankshaft/demo.json @@ -1,3 +1,4 @@ { - "url": "https://www.encodeproject.org/files/ENCFF863PGO/@@download/ENCFF863PGO.bam" + "url": "https://www.encodeproject.org/files/ENCFF863PGO/@@download/ENCFF863PGO.bam", + "count": 100000 } diff --git a/crankshaft/demo.wdl b/crankshaft/demo.wdl index 20af475..6679d4d 100644 --- a/crankshaft/demo.wdl +++ b/crankshaft/demo.wdl @@ -5,10 +5,11 @@ version 1.2 task samtools_flagstat { input { String url + Int count = 100000 } command <<< - samtools flagstat <(wget -O - -q '~{url}' | samtools view -h | head -n 100000) + samtools flagstat <(wget -O - -q '~{url}' | samtools view -h | head -n ~{count}) >>> requirements {