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.
|
- task samtools {
- File sam
- String base=basename(sam, ".sam")
- String bam=base + ".bam"
- String sorted_bam=base + ".sorted.bam"
- String sorted_bam_index=base + ".sorted.bam.bai"
- String samstats=base + ".samstats"
- String docker
- String cluster
- String disk_size
-
- command <<<
- set -o pipefail
- set -e
- /opt/conda/bin/samtools view -bS ${sam} > ${bam}
- /opt/conda/bin/samtools sort -m 1000000000 ${bam} -o ${sorted_bam}
- /opt/conda/bin/samtools index ${sorted_bam}
- /opt/conda/bin/samtools stats ${sorted_bam} > ${samstats}
- >>>
-
- runtime {
- docker: docker
- cluster: cluster
- systemDisk: "cloud_ssd 40"
- dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
- }
-
- output {
- File out_sort_bam=sorted_bam
- File out_sort_bam_index=sorted_bam_index
- File out_samstats=samstats
- }
-
- }
|