瀏覽代碼

alter batch.wdl

master
YaqingLiu 4 年之前
父節點
當前提交
23eb6da287
共有 3 個檔案被更改,包括 6 行新增6 行删除
  1. +2
    -2
      tasks/access.wdl
  2. +3
    -3
      tasks/batch.wdl
  3. +1
    -1
      workflow.wdl

+ 2
- 2
tasks/access.wdl 查看文件

task access { task access {
File faidx File faidx
File fasta File fasta
File? bed
File bed
String method String method
String min_gap_size String min_gap_size
String docker String docker
String disk_size String disk_size


command <<< command <<<
if [ ${method}=="amplicon" ]; then
if [ ${method} == "amplicon" ]; then
cp ${bed} access-mappable.bed cp ${bed} access-mappable.bed
else else
cnvkit.py access -s ${min_gap_size} -o access-mappable.bed ${fasta} cnvkit.py access -s ${min_gap_size} -o access-mappable.bed ${fasta}

+ 3
- 3
tasks/batch.wdl 查看文件

Array[File] tumor_bai Array[File] tumor_bai
Array[File] normal_bam Array[File] normal_bam
Array[File] normal_bai Array[File] normal_bai
File? bed
File bed
File faidx File faidx
File fasta File fasta
File? ref_flat File? ref_flat
cp ${faidx} /cromwell_root/tmp/cnvkit/hg38.fai cp ${faidx} /cromwell_root/tmp/cnvkit/hg38.fai
cp ${access_bed} /cromwell_root/tmp/cnvkit/access-mappable.bed cp ${access_bed} /cromwell_root/tmp/cnvkit/access-mappable.bed
# optional parameters # optional parameters
if [ ${bed} != "" ]; then cp ${bed} /cromwell_root/tmp/cnvkit/amplicon.bed; fi
if [ ${method} == "amplicon" ]; then cp ${bed} /cromwell_root/tmp/cnvkit/amplicon.bed; fi
if [ ${ref_flat} != "" ]; then cp ${ref_flat} /cromwell_root/tmp/cnvkit/ref_flat.txt; fi if [ ${ref_flat} != "" ]; then cp ${ref_flat} /cromwell_root/tmp/cnvkit/ref_flat.txt; fi
if [ ${reference} != "" ]; then cp ${reference} /cromwell_root/tmp/cnvkit/my_reference.cnn; fi if [ ${reference} != "" ]; then cp ${reference} /cromwell_root/tmp/cnvkit/my_reference.cnn; fi
cd /cromwell_root/tmp/cnvkit cd /cromwell_root/tmp/cnvkit
mkdir results mkdir results
cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \ cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \
--method ${method} --segment-method ${segment_method} \ --method ${method} --segment-method ${segment_method} \
--targets amplicon.bed ${access_opt} ${annotate_opt} \
--targets ${bed} ${access_opt} ${annotate_opt} \
--fasta hg38.fa ${reference_opt} \ --fasta hg38.fa ${reference_opt} \
--output-reference ${sample_id}.reference.cnn \ --output-reference ${sample_id}.reference.cnn \
--output-dir ./results/ \ --output-dir ./results/ \

+ 1
- 1
workflow.wdl 查看文件

Array[File] tumor_bai Array[File] tumor_bai
Array[File] normal_bam Array[File] normal_bam
Array[File] normal_bai Array[File] normal_bai
File? bed
File bed
File faidx File faidx
File fasta File fasta
File? ref_flat File? ref_flat

Loading…
取消
儲存