aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorl-d-s <distefano.l@wehi.edu.au>2019-05-30 16:57:20 +1000
committerl-d-s <distefano.l@wehi.edu.au>2019-05-30 16:58:10 +1000
commite4c0708d97949bb543e94ff5bdc558eb4c0c3dce (patch)
treefa17f92204dc8b0b50713c39a19b8a47422b1ab3 /tools
parentfb1cf1c39109cdd0e76687e5788561407d01d629 (diff)
picard-markDuplicates: Check for _any_ sorting of input
Diffstat (limited to 'tools')
-rw-r--r--tools/picard-markDuplicates.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/picard-markDuplicates.nix b/tools/picard-markDuplicates.nix
index 8906f9e..6b15310 100644
--- a/tools/picard-markDuplicates.nix
+++ b/tools/picard-markDuplicates.nix
@@ -9,10 +9,10 @@ with lib;
with types;
assert (matchFiletype "picard-markDuplicates" { bam = _: true; } inputBam);
+assert !(matchFileSorting "picard-markDuplicates" { none = _: true; } inputBam);
-# Not sure what to do with sorting: behavior varies based on sortedness of input!
-# See: https://broadinstitute.github.io/picard/command-line-overview.html#MarkDuplicates
-# assert (matchFileSorting "picard-markDuplicates" { coord = _: true; } inputBam);
+# Note that picard markDuplicates has different behaviour depending on whether the input
+# is name-sorted or coordinate-sorted.
stage {
name = "picard-markDuplicates";