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.

split_gvcf_files.wdl 609B

5 yıl önce
5 yıl önce
5 yıl önce
12345678910111213141516171819202122232425262728293031
  1. task split_gvcf_files {
  2. File gvcf
  3. String chromo
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. cat ${gvcf} | grep '#CHROM' | sed s'/\t/\n/g' > name
  9. sed -i '1,9d' name
  10. for i in {10..133}; do cat ${gvcf}| cut -f1-9,$i > $i.splited.vcf; done
  11. ls *splited.vcf | sort -n | paste - name > rename
  12. cat rename | while read a b; do mv $a $b.${chromo}.vcf; done
  13. >>>
  14. runtime {
  15. docker:docker
  16. cluster: cluster_config
  17. systemDisk: "cloud_ssd 40"
  18. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  19. }
  20. output {
  21. Array[File] splited_vcf = glob("*.${chromo}.vcf")
  22. }
  23. }