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.

extract_tables.wdl 1.1KB

4 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. task extract_tables {
  2. File quality_yield_summary
  3. File wgs_metrics_summary
  4. File aln_metrics_summary
  5. File is_metrics_summary
  6. File hap
  7. File fastqc
  8. File fastqscreen
  9. String project
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. python /opt/extract_tables.py -quality ${quality_yield_summary} -depth ${wgs_metrics_summary} -aln ${aln_metrics_summary} -is ${is_metrics_summary} -fastqc ${fastqc} -fastqscreen ${fastqscreen} -hap ${hap} -project ${project}
  15. cat variants.calling.qc.txt | cut -f12- | grep -v 'SNV' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}}
  16. END {for (i=1;i<=NF;i++) {
  17. printf "%f %f \n", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)}
  18. }' >> reference_datasets_aver-std.txt
  19. >>>
  20. runtime {
  21. docker:docker
  22. cluster:cluster_config
  23. systemDisk:"cloud_ssd 40"
  24. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  25. }
  26. output {
  27. File pre_alignment = "pre_alignment.txt"
  28. File post_alignment = "post_alignment.txt"
  29. File variant_calling = "variants.calling.qc.txt"
  30. File precision_recall = "reference_datasets_aver-std.txt"
  31. }
  32. }