|
|
@@ -1,6 +1,6 @@ |
|
|
|
task depth { |
|
|
|
File raw_depth |
|
|
|
File deduped_depth |
|
|
|
File bam_raw_depth |
|
|
|
File bam_deduped_depth |
|
|
|
String sample_id |
|
|
|
File regions |
|
|
|
String docker |
|
|
@@ -8,8 +8,8 @@ task depth { |
|
|
|
String disk_size |
|
|
|
|
|
|
|
command <<< |
|
|
|
sort -k1,1V -k2,2n ${raw_depth} | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.raw.sorted.depth |
|
|
|
sort -k1,1V -k2,2n ${deduped_depth} | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.deduped.sorted.depth |
|
|
|
sort -k1,1V -k2,2n ${bam_raw_depth} | awk '{printf "%s:%i\t%i\n" , $1,$2,$3}' > ${sample_id}.raw.sorted.depth |
|
|
|
sort -k1,1V -k2,2n ${bam_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 |
|
|
|
>>> |
|
|
|
|