Skip to content

Commit

Permalink
feat: implement more of the sprocket run command.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene committed Sep 6, 2024
1 parent 515b01f commit 6d1eb37
Show file tree
Hide file tree
Showing 8 changed files with 437 additions and 26 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
url = "2.5.2"
wdl-analysis = { git = "https://github.com/peterhuene/wdl", branch = "hackathon" }
wdl-ast = { git = "https://github.com/peterhuene/wdl", branch = "hackathon" }
wdl-grammar = { git = "https://github.com/peterhuene/wdl", branch = "hackathon" }
wdl-ast = { git = "https://github.com/peterhuene/wdl", branch = "hackathon", features = ["codespan"] }
wdl-grammar = { git = "https://github.com/peterhuene/wdl", branch = "hackathon", features = ["codespan"] }
codespan-reporting = "0.11.1"
colored = "2.1.0"
3 changes: 3 additions & 0 deletions crankshaft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
indicatif = { workspace = true }
tes = { path = "../tes", version = "0.1.0" }
wdl-runtime = { path = "../wdl-runtime", version = "0.1.0" }
async-trait = { workspace = true }
bollard = { workspace = true }
bytes = { workspace = true }
Expand Down Expand Up @@ -34,6 +35,8 @@ wdl-ast = { workspace = true }
wdl-analysis = { workspace = true }
anyhow = { workspace = true }
tar.workspace = true
codespan-reporting = { workspace = true }
colored = { workspace = true }

[lints.rust]
missing_docs = "warn"
Expand Down
3 changes: 3 additions & 0 deletions crankshaft/demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"url": "https://www.encodeproject.org/files/ENCFF863PGO/@@download/ENCFF863PGO.bam"
}
21 changes: 21 additions & 0 deletions crankshaft/demo.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## This is a demonstration of evaluating WDL and running a task using crankshaft.
version 1.2

task samtools_flagstat {
input {
String url
}

command <<<
samtools flagstat <(wget -O - -q '~{url}' | samtools view -h | head -n 100000)
>>>

requirements {
container: "quay.io/biocontainers/samtools:1.19.2--h50ea8bc_0"
}

output {
String stats = read_string(stdout())
}
}
Loading

0 comments on commit 6d1eb37

Please sign in to comment.