瀏覽代碼

alter access

master
YaqingLiu 4 年之前
父節點
當前提交
bb6b7cea7f
共有 3 個文件被更改,包括 5 次插入6 次删除
  1. +1
    -2
      tasks/access.wdl
  2. +4
    -3
      tasks/batch.wdl
  3. +0
    -1
      workflow.wdl

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

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


command <<< command <<<
if [ ${method}=="amplicon" ]; then if [ ${method}=="amplicon" ]; then
cp ${bed} access-mappable.bed
touch 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}
fi fi

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



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


command <<< command <<<
set -o pipefail set -o pipefail
mkdir results mkdir results
cnvkit.py batch ${sep=' ' tumor_bam} --normal ${sep=' ' normal_bam} \ 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-reference ~/${sample_id}.reference.cnn \
--output-dir ./results/ \ --output-dir ./results/ \
--drop-low-coverage --diagram --scatter --drop-low-coverage --diagram --scatter

+ 0
- 1
workflow.wdl 查看文件

faidx = faidx, faidx = faidx,
method = method, method = method,
min_gap_size = min_gap_size, min_gap_size = min_gap_size,
bed = bed,
docker = docker, docker = docker,
cluster_config = cluster_config, cluster_config = cluster_config,
disk_size = disk_size disk_size = disk_size

Loading…
取消
儲存