Skip to content

Commit

Permalink
fix: add count input to the demo WDL. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene authored Sep 6, 2024
1 parent 829261e commit a886a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crankshaft/demo.json
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion crankshaft/demo.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a886a62

Please sign in to comment.