소스 검색

update: depth.wdl

master
YaqingLiu 4 년 전
부모
커밋
153ace0c9d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      tasks/depth.wdl

+ 2
- 2
tasks/depth.wdl 파일 보기

@@ -10,8 +10,8 @@ task depth {
String disk_size
command <<<
/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
/opt/conda/bin/samtools depth -aa -b ${regions} ${raw_bam} > ${sample_id}.raw.depth
/opt/conda/bin/samtools depth -aa -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…
취소
저장