Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

44 Zeilen
1.3KB

  1. task Jaccard_Index {
  2. File merged_gvcf
  3. String chromo
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. cat ${merged_gvcf} | grep -v '##' | awk '
  9. BEGIN { OFS = "\t" }
  10. NF > 2 && FNR > 1 {
  11. for ( i=9; i<=NF; i++ ) {
  12. split($i,a,":") ;$i = a[1];
  13. }
  14. }
  15. { print }
  16. '| cut -f1,2,4,5,10- > ${chromo}.gt
  17. cat ${chromo}.gt | awk '{ if ((length($3) == 1) && (length($4) == 1)) { print } }' > ${chromo}.gt.snv
  18. cat ${chromo}.gt | awk '{ if ((length($3) != 1) || (length($4) != 1)) { print } }' > ${chromo}.gt.indel
  19. python /opt/library_concordance.py -i ${chromo}.gt.snv -prefix ${chromo}.snv
  20. python /opt/filter_indel_over_50.py -i ${chromo}.gt.indel -prefix ${chromo}
  21. python /opt/library_concordance.py -i ${chromo}.indel.lessthan50bp.txt -prefix ${chromo}.indel
  22. >>>
  23. runtime {
  24. docker:docker
  25. cluster: cluster_config
  26. systemDisk: "cloud_ssd 40"
  27. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  28. }
  29. output {
  30. File genotype = "${chromo}.gt"
  31. File snv = "${chromo}.gt.snv"
  32. File indel = "${chromo}.indel.lessthan50bp.txt"
  33. File snv_inter = "${chromo}.snv.inter.txt"
  34. File snv_union = "${chromo}.snv.union.txt"
  35. File indel_inter = "${chromo}.indel.inter.txt"
  36. File indel_union = "${chromo}.indel.union.txt"
  37. }
  38. }