Bläddra i källkod

alter access

master
YaqingLiu 4 år sedan
förälder
incheckning
bb6b7cea7f
3 ändrade filer med 5 tillägg och 6 borttagningar
  1. +1
    -2
      tasks/access.wdl
  2. +4
    -3
      tasks/batch.wdl
  3. +0
    -1
      workflow.wdl

+ 1
- 2
tasks/access.wdl Visa fil

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

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

+ 4
- 3
tasks/batch.wdl Visa fil

@@ -17,6 +17,7 @@ task batch {

String annotate_opt = if (ref_flat != "") then "--annotate ${ref_flat}" else ""
String reference_opt = if (reference != "") then "--reference ${reference}" else ""
String access_opt = if (method == "amplicon") then "--access ${bed}" else "--access ${access_bed}"

command <<<
set -o pipefail
@@ -30,9 +31,9 @@ task batch {
mkdir results
cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \
--targets ${bed} --method ${method} \
${annotate_opt} ${reference_opt} \
--fasta hg38.fa --access ${access_bed} \
--method ${method} \
--targets ${bed} ${annotate_opt} \
--fasta hg38.fa ${access_opt} ${reference_opt} \
--output-reference ~/${sample_id}.reference.cnn \
--output-dir ./results/ \
--drop-low-coverage --diagram --scatter

+ 0
- 1
workflow.wdl Visa fil

@@ -25,7 +25,6 @@ workflow {{ project_name }} {
faidx = faidx,
method = method,
min_gap_size = min_gap_size,
bed = bed,
docker = docker,
cluster_config = cluster_config,
disk_size = disk_size

Laddar…
Avbryt
Spara