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.

getBam.wdl 546B

5 anni fa
4 anni fa
5 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
5 anni fa
4 anni fa
5 anni fa
12345678910111213141516171819202122232425262728
  1. task getBam {
  2. File bam
  3. File bam_idx
  4. String sample
  5. File region
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. cat ${region} | while read a
  11. do
  12. /opt/conda/bin/samtools view -b ${bam} "$a" > $a.${sample}.bam
  13. /opt/conda/bin/samtools index $a.${sample}.bam
  14. done
  15. >>>
  16. runtime {
  17. docker:docker
  18. cluster: cluster_config
  19. systemDisk: "cloud_ssd 40"
  20. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  21. }
  22. output {
  23. Array[File] region_bam = glob("*.bam")
  24. Array[File] region_bai = glob("*.bam.bai")
  25. }
  26. }