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.

pre.wdl 1.0KB

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839
  1. task pre {
  2. File ref_dir
  3. File fasta
  4. File vcf
  5. String sample
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. nt=$(nproc)
  13. mkdir -p /cromwell_root/tmp
  14. cp -r ${ref_dir} /cromwell_root/tmp/
  15. export HGREF=/cromwell_root/tmp/reference_data/GRCh38.d1.vd1.fa
  16. if [[ ${sample} =~ "LCL7" ]]; then
  17. /opt/hap.py/bin/pre.py ${vcf} ${sample}.vcf.gz -r /cromwell_root/tmp/reference_data/GRCh38.d1.vd1.fa -D -L --fixchr --gender male --threads $nt --logfile ${sample}.vairants.normalization.pre.log
  18. else
  19. /opt/hap.py/bin/pre.py ${vcf} ${sample}.vcf.gz -r /cromwell_root/tmp/reference_data/GRCh38.d1.vd1.fa -D -L --fixchr --gender female --threads $nt --logfile ${sample}.vairants.normalization.pre.log
  20. fi
  21. >>>
  22. runtime {
  23. docker:docker
  24. cluster: cluster_config
  25. systemDisk: "cloud_ssd 40"
  26. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  27. }
  28. output {
  29. File normalized_vcf = "${sample}.vcf.gz"
  30. File log = "${sample}.vairants.normalization.pre.log"
  31. }
  32. }