Quellcode durchsuchen

alter batch.wdl

master
YaqingLiu vor 4 Jahren
Ursprung
Commit
23eb6da287
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. +2
    -2
      tasks/access.wdl
  2. +3
    -3
      tasks/batch.wdl
  3. +1
    -1
      workflow.wdl

+ 2
- 2
tasks/access.wdl Datei anzeigen

@@ -1,7 +1,7 @@
task access {
File faidx
File fasta
File? bed
File bed
String method
String min_gap_size
String docker
@@ -9,7 +9,7 @@ task access {
String disk_size

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

+ 3
- 3
tasks/batch.wdl Datei anzeigen

@@ -4,7 +4,7 @@ task batch {
Array[File] tumor_bai
Array[File] normal_bam
Array[File] normal_bai
File? bed
File bed
File faidx
File fasta
File? ref_flat
@@ -31,7 +31,7 @@ task batch {
cp ${faidx} /cromwell_root/tmp/cnvkit/hg38.fai
cp ${access_bed} /cromwell_root/tmp/cnvkit/access-mappable.bed
# 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 [ ${reference} != "" ]; then cp ${reference} /cromwell_root/tmp/cnvkit/my_reference.cnn; fi
cd /cromwell_root/tmp/cnvkit
@@ -39,7 +39,7 @@ task batch {
mkdir results
cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \
--method ${method} --segment-method ${segment_method} \
--targets amplicon.bed ${access_opt} ${annotate_opt} \
--targets ${bed} ${access_opt} ${annotate_opt} \
--fasta hg38.fa ${reference_opt} \
--output-reference ${sample_id}.reference.cnn \
--output-dir ./results/ \

+ 1
- 1
workflow.wdl Datei anzeigen

@@ -8,7 +8,7 @@ workflow {{ project_name }} {
Array[File] tumor_bai
Array[File] normal_bam
Array[File] normal_bai
File? bed
File bed
File faidx
File fasta
File? ref_flat

Laden…
Abbrechen
Speichern