Skip to content

Commit

Permalink
first commit of cnv prober
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyaog committed Jul 6, 2024
1 parent d507386 commit b7b4c55
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ workflows:
primaryDescriptorPath: /PECGS-QUICviz/QUICviz.wdl
testParameterFiles:
- /PECGS-QUICviz/QUICviz.inputs.json
- name: cnvArrayProber
subclass: WDL
primaryDescriptorPath: /CNV_Array_Prober/cnvArrayProber.wdl
testParameterFiles:
- /CNV_Array_Prober/cnvArrayProber.inputs.json
11 changes: 11 additions & 0 deletions CNV_Array_Prober/cnvArrayProber.inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cnvArrayProber.cnvArrayProber.cpu": "Int (optional, default = 1)",
"cnvArrayProber.cnvProberDocker": "String (optional, default = \"us.gcr.io/tag-public/cnv-array-prober:0.0.0\")",
"cnvArrayProber.cnvBedFile": "File",
"cnvArrayProber.CytoSNP850K_Support_Csv": "File",
"cnvArrayProber.sampleName": "String",
"cnvArrayProber.GDA_Support_Csv": "File",
"cnvArrayProber.cnvArrayProber.disk": "Int (optional, default = 100)",
"cnvArrayProber.cnvArrayProber.memory": "Int (optional, default = 4)"
}

63 changes: 63 additions & 0 deletions CNV_Array_Prober/cnvArrayProber.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version 1.0

workflow cnvArrayProber {
input{
String sampleName
File cnvBedFile
File CytoSNP850K_Support_Csv
File GDA_Support_Csv
String cnvProberDocker = "us.gcr.io/tag-public/cnv-array-prober:0.0.0"
}
call cnvArrayProber {
input:
sampleName = sampleName,
cnvBedFile = cnvBedFile,
CytoSNP850K_Support_Csv = CytoSNP850K_Support_Csv,
GDA_Support_Csv = GDA_Support_Csv,
cnvProberDocker = cnvProberDocker
}
output{
File cnvProbeAnnotation = cnvArrayProber.cnvProbeAnnotation
File cnvProbePlots = cnvArrayProber.cnvProbePlots
}
meta {
author: "Yueyao Gao"
email: "[email protected]"
description: "This workflow takes a CNV bed file and CytoSNP-850K and GDA support files as input and outputs a csv file with probe information for each CNV interval. Additionally, output a PDF file with plots for each CNV interval the number of probes in the CytoSNP-850K and GDA arrays."
}
}

task cnvArrayProber {
input{
String sampleName
File cnvBedFile
File CytoSNP850K_Support_Csv
File GDA_Support_Csv
String cnvProberDocker
Int memory = 4
Int cpu = 1
Int disk = 100
}
command <<<
set -e
mkdir output
conda run --no-capture-output \
-n prober_env \
python3 /BaseImage/cnvArrayProber/scripts/cnvArrayProber.py \
-b ~{cnvBedFile} \
-c ~{CytoSNP850K_Support_Csv} \
-g ~{GDA_Support_Csv} \
-o output/~{sampleName}
>>>
output{
File cnvProbeAnnotation = "output/~{sampleName}CNV_Probe_Mappings.csv"
File cnvProbePlots = "output/~{sampleName}CNV_Probe_Mappings_Plots.pdf"
}
runtime {
docker: cnvProberDocker
memory: memory
cpu: cpu
disk: disk
}
}

0 comments on commit b7b4c55

Please sign in to comment.