Skip to content

Commit

Permalink
Merge pull request #62 from tmooney/reconcile_no_validatesamfile
Browse files Browse the repository at this point in the history
Port some fixes from no_validatesamfile to master.
  • Loading branch information
tmooney authored Aug 16, 2021
2 parents d47251d + c7dc14d commit 3eec411
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SingleSampleQc.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ version 1.0
## - [VerifyBamID2](https://github.com/Griffan/VerifyBamID)
# Git URL import
import "https://raw.githubusercontent.com/genome/qc-analysis-pipeline/master/tasks/Qc.wdl" as QC
import "tasks/Qc.wdl" as QC

# WORKFLOW DEFINITION
workflow SingleSampleQc {
Expand Down Expand Up @@ -187,6 +187,7 @@ workflow SingleSampleQc {
File? hs_metrics = CollectHsMetrics.metrics

File input_bam_md5 = CalculateChecksum.md5
String input_bam_md5_hash = CalculateChecksum.md5_hash
File input_bam_index = BuildBamIndex.bam_index
}
}
7 changes: 5 additions & 2 deletions tasks/Qc.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,10 @@ task CalculateChecksum {
Int disk_size = ceil(size(input_bam, "GiB")) + 20
String output_name = basename(input_bam)
command {
md5sum ~{input_bam} > ~{input_bam}.md5
md5sum ~{input_bam} > ~{output_name}.md5
}
runtime {
preemptible: preemptible_tries
Expand All @@ -418,6 +420,7 @@ task CalculateChecksum {
docker: "us.gcr.io/gcp-runtimes/ubuntu_16_0_4:latest"
}
output {
File md5 = "~{input_bam}.md5"
File md5 = "~{output_name}.md5"
String md5_hash = sub(read_string(md5), " .+$", "")
}
}

0 comments on commit 3eec411

Please sign in to comment.