-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |