|
|
|
|
|
|
|
|
task batch { |
|
|
task batch { |
|
|
String sample_id |
|
|
String sample_id |
|
|
File tumor_bam |
|
|
|
|
|
File tumor_bai |
|
|
|
|
|
File normal_bam |
|
|
|
|
|
File normal_bai |
|
|
|
|
|
|
|
|
Array[File] tumor_bam |
|
|
|
|
|
Array[File] tumor_bai |
|
|
|
|
|
Array[File] normal_bam |
|
|
|
|
|
Array[File] normal_bai |
|
|
String bed |
|
|
String bed |
|
|
File ref_dir |
|
|
File ref_dir |
|
|
String fasta |
|
|
String fasta |
|
|
|
|
|
|
|
|
String disk_size |
|
|
String disk_size |
|
|
|
|
|
|
|
|
command <<< |
|
|
command <<< |
|
|
cnvkit.py batch ${tumor_bam} --normal ${normal_bam} \ |
|
|
|
|
|
|
|
|
set -o pipefail |
|
|
|
|
|
set -e |
|
|
|
|
|
mkdir -p /cromwell_root/tmp/cnvkit |
|
|
|
|
|
cp ${sep=' ' normal_bai} /cromwell_root/tmp/cnvkit |
|
|
|
|
|
cp ${sep=' ' tumor_bai} /cromwell_root/tmp/cnvkit |
|
|
|
|
|
cd /cromwell_root/tmp/cnvkit |
|
|
|
|
|
|
|
|
|
|
|
cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \ |
|
|
--targets ${bed} \ |
|
|
--targets ${bed} \ |
|
|
--fasta ${ref_dir}/${fasta} --access ${access_bed} \ |
|
|
--fasta ${ref_dir}/${fasta} --access ${access_bed} \ |
|
|
--output-reference my_reference.cnn --output-dir ./results/ \ |
|
|
--output-reference my_reference.cnn --output-dir ./results/ \ |
|
|
--diagram --scatter |
|
|
--diagram --scatter |
|
|
>>> |
|
|
>>> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
runtime { |
|
|
runtime { |
|
|
docker: docker |
|
|
docker: docker |
|
|
cluster: cluster_config |
|
|
cluster: cluster_config |