diff options
author | Justin Bedo <cu@cua0.org> | 2019-04-07 21:10:25 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2019-04-07 21:10:25 +1000 |
commit | e5a8870358713f4e44e135da913c50230d83d4f1 (patch) | |
tree | 9678b00f5b683f0d3df31c11ff2c96c0a597cb0f /tools/strelka-call.nix | |
parent | e97bc0b22b9f49d95d6b449b2b20e7222b42622d (diff) |
modify outputs to ensure determinism
Diffstat (limited to 'tools/strelka-call.nix')
-rw-r--r-- | tools/strelka-call.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/strelka-call.nix b/tools/strelka-call.nix index 7836bbe..bc1e202 100644 --- a/tools/strelka-call.nix +++ b/tools/strelka-call.nix @@ -38,7 +38,18 @@ stage { -m local \ -j $NIX_BUILD_CORES 2>&1 - cp -r results $out + # Strelka writes runtime stats and timestamps; + # both have to be stripped to provide determinism + cd results/variants + rm *.tbi genome.vcf.gz + for f in *.vcf.gz; do + gunzip $f + g=$(basename $f .gz) + sed -i '/^##fileDate/d' $g + sed -i '/^##startTime/d' $g + done + mkdir $out + cp -r * $out ''; passthru.multicore = true; } |