You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. task D5_D6 {
  2. Array[File] splited_vcf
  3. String project
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. mkdir -p /cromwell_root/tmp/vcf
  9. cp ${sep=" " splited_vcf} /cromwell_root/tmp/vcf
  10. for i in /cromwell_root/tmp/vcf/*vcf
  11. do
  12. for j in /cromwell_root/tmp/vcf/*vcf
  13. do
  14. sample_i=$(echo $i | cut -f7 -d_)
  15. sample_j=$(echo $j | cut -f7 -d_)
  16. rep_i=$(echo $i | cut -f8 -d_)
  17. rep_j=$(echo $j | cut -f8 -d_)
  18. if [ $sample_i == "LCL5" ] && [ $sample_j == "LCL6" ] && [ $rep_i == $rep_j ];then
  19. cat $i | grep -v '##' | cut -f1,2,4,5,10 | cut -d ':' -f1 > LCL5.txt
  20. cat $j | grep -v '##' | cut -f10 | cut -d ':' -f1 > LCL6.txt
  21. paste LCL5.txt LCL6.txt > sister.txt
  22. python /opt/D5_D6.py -sister sister.txt -project ${project}.$rep_i
  23. fi
  24. done
  25. done
  26. for i in *.reproducibility.txt
  27. do
  28. cat $i | sed -n '2,2p' >> sister.summary
  29. done
  30. sed '1i\Family\tReproducibility_D5_D6' sister.summary > ${project}.sister.txt
  31. >>>
  32. runtime {
  33. docker:docker
  34. cluster: cluster_config
  35. systemDisk: "cloud_ssd 40"
  36. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. Array[File] sister_file = glob("*.reproducibility.txt")
  40. File sister_summary = "${project}.sister.txt"
  41. }
  42. }