Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

44 rindas
1.3KB

  1. task SepSnvIndel {
  2. File vcf
  3. String sampleName
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. cat ${vcf} | grep '#' > header
  9. cat ${vcf} | sed '/^#/d' | awk '$5!~/,/' > removed.body
  10. cat ${vcf} | sed '/^#/d' | awk '$5~/,/' > MNP.body
  11. cat header removed.body > ${sampleName}.MNPremoved.vcf
  12. cat header MNP.body > ${sampleName}.MNP.vcf
  13. rtg bgzip ${sampleName}.MNPremoved.vcf
  14. rtg index -f vcf ${sampleName}.MNPremoved.vcf.gz
  15. rtg vcffilter -i ${sampleName}.MNPremoved.vcf.gz -o ${sampleName}.normed.snv.vcf.gz --snps-only
  16. rtg vcffilter -i ${sampleName}.MNPremoved.vcf.gz -o ${sampleName}.normed.indel.vcf.gz --non-snps-only
  17. gzip -d ${sampleName}.normed.snv.vcf.gz -c > ${sampleName}.normed.snv.vcf
  18. gzip -d ${sampleName}.normed.indel.vcf.gz -c > ${sampleName}.normed.indel.vcf
  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 MNP="${sampleName}.MNP.vcf"
  28. File nist_snv_gz="${sampleName}.normed.snv.vcf.gz"
  29. File nist_snv_gz_idx="${sampleName}.normed.snv.vcf.gz.tbi"
  30. File nist_indel_gz="${sampleName}.normed.indel.vcf.gz"
  31. File nist_indel_gz_idx="${sampleName}.normed.indel.vcf.gz.tbi"
  32. File nist_snv="${sampleName}.normed.snv.vcf"
  33. File nist_indel="${sampleName}.normed.indel.vcf"
  34. }
  35. }