瀏覽代碼

update: depth.wdl

master
YaqingLiu 4 年之前
父節點
當前提交
2691ffdad9
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      tasks/depth.wdl

+ 4
- 4
tasks/depth.wdl 查看文件

@@ -10,10 +10,10 @@ task depth {
String disk_size
command <<<
/opt/conda/bin/samtools depth -b ${regions} ${raw_bam} > ${sample_id}.raw.depth
/opt/conda/bin/samtools depth -b ${regions} ${deduped_bam} > ${sample_id}.deduped.depth
awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' ${sample_id}.raw.depth | sort > ${sample_id}.raw.sorted.depth
awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' ${sample_id}.deduped.depth | sort > ${sample_id}.deduped.sorted.depth
/opt/conda/bin/samtools depth -a -b ${regions} ${raw_bam} > ${sample_id}.raw.depth
/opt/conda/bin/samtools depth -a -b ${regions} ${deduped_bam} > ${sample_id}.deduped.depth
sort -k1,1V -k2,2n ${sample_id}.raw.depth | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.raw.sorted.depth
sort -k1,1V -k2,2n ${sample_id}.deduped.depth | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.deduped.sorted.depth
join -e NULL -a1 -j 1 -o 1.1,1.2,2.2 ${sample_id}.raw.sorted.depth ${sample_id}.deduped.sorted.depth > ${sample_id}.depth
>>>


Loading…
取消
儲存