Skip to content

Commit

Permalink
Np fix womtools validation (#1374)
Browse files Browse the repository at this point in the history
* pin all latest docker version

* loom to h5ad to fix womtools check

* Update ValidateSmartSeq2SingleNucleus.wdl
  • Loading branch information
nikellepetrillo authored Sep 17, 2024
1 parent 1268eb6 commit 58285d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ task ValidateSnSmartSeq2 {
input {
File exon_intron_counts_hash
String truth_exon_intron_counts_hash
File loom_output
File truth_loom
File h5ad_output
File truth_h5ad

Int disk_size = ceil(size(loom_output,"GiB") + size(truth_loom, "GiB") + 10)
Int disk_size = ceil(size(h5ad_output,"GiB") + size(truth_h5ad, "GiB") + 10)
}

command <<<

# catch intermittent failures
set -eo pipefail

#compare looms
python3 /usr/gitc/loomCompare.py --truth-loom ~{truth_loom} --check-loom ~{loom_output} --delta-cutoff 10

# calculate hashes; awk is used to extract the hash from the md5sum output that contains both
# a hash and the filename that was passed. We parse the first 7 columns because a bug in RSEM
# makes later columns non-deterministic.
Expand All @@ -37,4 +34,4 @@ task ValidateSnSmartSeq2 {
memory: "8 GB"
disks: "local-disk 1${disk_size} HDD"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflow TestSmartSeq2SingleNucleusPR {
#checksums
Array[String] truth_exon_intron_counts_hash
Array[File] truth_bam
File truth_loom
File truth_h5ad


# snSS2 inputs
Expand Down Expand Up @@ -41,8 +41,8 @@ workflow TestSmartSeq2SingleNucleusPR {
input:
exon_intron_counts_hash = target_workflow.exon_intron_count_files[idx],
truth_exon_intron_counts_hash = truth_exon_intron_counts_hash[idx],
loom_output = target_workflow.loom_output,
truth_loom = truth_loom
h5ad_output = target_workflow.h5ad_output,
truth_h5ad = truth_h5ad
}
call verify_tasks.CompareBams as CompareBams {
input:
Expand Down

0 comments on commit 58285d0

Please sign in to comment.