Skip to content

Commit 55e814e

Browse files
committed
(sh_trivial_stats)
New workflow * collect SAM flag stats
1 parent 67c9538 commit 55e814e

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.dockstore.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ workflows:
138138
- name: VerifyBamFingerprint
139139
subclass: wdl
140140
primaryDescriptorPath: /wdl/pipelines/TechAgnostic/Utility/VerifyBamFingerprint.wdl
141+
- name: CollectBamFlagStats
142+
subclass: wdl
143+
primaryDescriptorPath: /wdl/pipelines/TechAgnostic/Utility/CollectBamFlagStats.wdl
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version 1.0
2+
3+
import "../../../tasks/Utility/BAMutils.wdl" as BU
4+
5+
workflow CollectBamFlagStats {
6+
meta {
7+
description: "Collect SAM flag stats of an aligned BAM"
8+
}
9+
input {
10+
File bam
11+
String disk_type = "HDD"
12+
}
13+
14+
call BU.SamtoolsFlagStats { input: bam = bam, output_format = 'JSON', disk_type = disk_type }
15+
call BU.ParseFlagStatsJson { input: sam_flag_stats_json = SamtoolsFlagStats.flag_stats }
16+
17+
output {
18+
Map[String, Float] sam_flag_stats = ParseFlagStatsJson.qc_pass_reads_SAM_flag_stats
19+
}
20+
}

0 commit comments

Comments
 (0)