|
|
@@ -2,14 +2,14 @@ task getBam { |
|
|
|
File bam |
|
|
|
File bam_idx |
|
|
|
String sample |
|
|
|
Array[String] pos |
|
|
|
String pos |
|
|
|
String docker |
|
|
|
String cluster_config |
|
|
|
String disk_size |
|
|
|
|
|
|
|
command <<< |
|
|
|
/opt/conda/bin/samtools view -b ${bam} ${sep=" " pos} | /opt/conda/bin/samtools sort - > ${sample}.bam |
|
|
|
/opt/conda/bin/samtools index ${sample}.bam |
|
|
|
/opt/conda/bin/samtools view -b ${bam} ${pos} > ${sample}.${pos}.bam |
|
|
|
/opt/conda/bin/samtools index ${sample}.${pos}.bam |
|
|
|
>>> |
|
|
|
|
|
|
|
runtime { |
|
|
@@ -19,8 +19,8 @@ task getBam { |
|
|
|
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" |
|
|
|
} |
|
|
|
output { |
|
|
|
File sub_bam = "${sample}.bam" |
|
|
|
File sub_bai = "${sample}.bam.bai" |
|
|
|
File sub_bam = "${sample}.${pos}.bam" |
|
|
|
File sub_bai = "${sample}.${pos}.bam.bai" |
|
|
|
} |
|
|
|
} |
|
|
|
|