You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- task cnvkit{
- String sample_id
- File ref_dir
- String? fasta
- File ref_flat
- File bed_file
- File tumor_bam
- File tumor_bam_index
- File? normal_bam
- File? normal_bam_index
- String docker
- String cluster_config
- String disk_size
- String sample=basename(tumor_bam,".bam")
-
- command <<<
-
- set -o pipefail
- set -e
- nt=$(nproc)
-
- echo ${sample}
-
- /root/miniconda2/bin/cnvkit.py batch ${tumor_bam} \
- --normal ${normal_bam} \
- --method wgs \
- --fasta ${ref_dir} \
- --annotate ${ref_flat} -p $nt \
- --targets ${bed_file} \
- --drop-low-coverage \
- --output-dir ${sample}.reference.cnn
- ls ./
-
-
- /root/miniconda2/bin/cnvkit.py batch ${tumor_bam} \
- -r ${sample}.reference.cnn/reference.cnn \
- --output-dir ${sample}.sampleid.cns \
- -p $nt
-
- #ls ./
- #/root/miniconda2/bin/cnvkit.py call ${sample}.sampleid.cns \
- # -o ${sample}.sampleid.call.cns
-
-
-
- ls ./
-
- tar cvf ${sample}.tar ${sample}*
-
- >>>
-
- runtime{
- docker:docker
- cluster:cluster_config
- systemDisk:"cloud_ssd 40"
- dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
- timeout:259200
- }
-
- output{
- File out_file = "${sample}.tar"
- #File cnv_bed = "${sample}.ratio_cnv.call.filter.bed"
- }
-
- }
|