Skip to content

Commit

Permalink
Add container source and version to main workflow***
Browse files Browse the repository at this point in the history
***Update docker image reference in extract_info task
  • Loading branch information
anand-imcm committed Mar 27, 2024
1 parent c1bc2af commit bb794d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion workflows/main.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import "./tasks/extract_info.wdl" as info

workflow main {

String pipeline_version = "1.0.0"
String container_src = "ghcr.io/IMCM-OX/get-variant-info:~{pipeline_version}"

input {
File query_variants
File? query_samples
Expand All @@ -21,7 +24,7 @@ workflow main {
}

call info.extract {
input: query_variants = query_variants, query_samples = query_samples, imputed_vcf = imputed_vcf, prefix = prefix, extract_item = extract_item
input: query_variants = query_variants, query_samples = query_samples, imputed_vcf = imputed_vcf, prefix = prefix, extract_item = extract_item, docker = container_src
}

output {
Expand Down
3 changes: 2 additions & 1 deletion workflows/tasks/extract_info.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ task extract {
Array [File] imputed_vcf
String prefix
String extract_item
String docker
}

Int disk_size_gb = ceil(size(imputed_vcf, "GiB")) + 5
Expand Down Expand Up @@ -54,7 +55,7 @@ task extract {
}

runtime {
docker: "docker.io/library/extract"
docker: "~{docker}"
memory: "32G"
disks: "local-disk ~{disk_size_gb} HDD"
}
Expand Down

0 comments on commit bb794d7

Please sign in to comment.