您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
1.1KB

  1. task MIEpos2bed {
  2. File mie_file
  3. String chromo
  4. String sample_name
  5. String docker
  6. String cluster_config
  7. String disk_size
  8. command <<<
  9. python /opt/vcf2bed.py ${mie_file} ${sample_name}.${chromo}.info.txt
  10. cat ${sample_name}.${chromo}.info.txt | grep -v '0:4:4' | grep -v '1:4:4' | awk '{ if ($3 != 0) { print } }' | cut -f1,8,9 > ${sample_name}.${chromo}.allvariants.bed
  11. cat ${sample_name}.${chromo}.info.txt | grep -v '0:4:4' | grep -v '1:4:4' | awk '{ if ($3 != 0) { print } }' | grep 'MIE' | cut -f1,8,9 > ${sample_name}.${chromo}.mie.bed
  12. cat ${sample_name}.${chromo}.info.txt | awk '{print $1,$8,$9,$10,$2,$3,$4,$5,$6,$7}' | sed 's/\s\+/\t/g' > ${sample_name}.${chromo}.info.bed
  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. File info = "${sample_name}.${chromo}.info.txt"
  22. File mie_bed = "${sample_name}.${chromo}.mie.bed"
  23. File all_bed = "${sample_name}.${chromo}.allvariants.bed"
  24. File info_bed = "${sample_name}.${chromo}.info.bed"
  25. }
  26. }