Skip to content

Commit

Permalink
make resource optional input
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyaog committed Apr 26, 2024
1 parent e0dbb9e commit 4dcfd44
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions PECGS-QUICviz/QUICviz.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ workflow QUICviz {
input:
SampleID = sampleID,
TumorType = tumorType,
plot = QUICvizPlots
plot = QUICvizPlots,
quicvizDocker = quicvizDocker
}
output {
File QUICvizPDF = mergeImages.chr_pdf
Expand All @@ -54,6 +55,8 @@ task QUICviz {
File denoisedCopyRatiosTumor
File calledCopyRatioSegTumor
File oncotatedCalledTumor
Int memory = 16
Int cpu = 4
}
command <<<
set -e
Expand All @@ -70,16 +73,14 @@ task QUICviz {
--tumor_seg_oncotated ~{oncotatedCalledTumor} \
--output_dir outputs/

ls outputs/
readlink -f outputs/*png
>>>
output {
Array[File] plot = glob("outputs/*.png")
}
runtime {
docker: quicvizDocker
memory: "16 GB"
cpu: "4"
memory: memory
cpu: cpu
disks: "local-disk 100 HDD"
}
}
Expand All @@ -88,13 +89,13 @@ task mergeImages {
String SampleID
String TumorType
Array[File] plot
String quicvizDocker
Int memory = 16
Int cpu = 4
}
command <<<
mkdir -p output/images
for i in `ls ~{sep=" " plot}`; do mv $i output/images/; done
ls output/images/
source activate NeoVax-Input-Parser
pip3 install img2pdf

python <<CODE
import img2pdf
Expand All @@ -115,9 +116,9 @@ task mergeImages {
File allchr_plot = "output/images/All_chr.png"
}
runtime {
docker: "us.gcr.io/tag-team-160914/neovax-parsley:2.2.1.0"
memory: "16 GB"
cpu: "4"
docker: quicvizDocker
memory: memory
cpu: cpu
disks: "local-disk 100 HDD"
}
}

0 comments on commit 4dcfd44

Please sign in to comment.