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.

33 lines
840B

  1. task VCFinfo {
  2. File repeat_annotated_vcf
  3. String sample
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. python /opt/variants_quality_location_intergration.py -vcf ${repeat_annotated_vcf} -prefix ${sample}
  9. cat ${sample}_variant_quality_location.txt | grep '#CHROM' > header
  10. for i in chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chrX
  11. do
  12. cat ${sample}_variant_quality_location.txt | grep -w $i | cat header - > ${sample}.$i.vcfInfo.txt
  13. done
  14. >>>
  15. runtime {
  16. docker:docker
  17. cluster: cluster_config
  18. systemDisk: "cloud_ssd 40"
  19. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  20. }
  21. output {
  22. File extracted_info = "${sample}_variant_quality_location.txt"
  23. Array[File] chromo_vcfInfo = glob("*.vcfInfo.txt")
  24. }
  25. }