aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorl-d-s <distefano.l@wehi.edu.au>2019-06-06 09:33:36 +1000
committerl-d-s <distefano.l@wehi.edu.au>2019-06-06 09:33:36 +1000
commit22e61f4fbdc0fc698a25fbe9aa64ebb4da1e32a8 (patch)
tree767b53f545916cbb3ab63e61bac31e55e60ff488 /tools
parente4c0708d97949bb543e94ff5bdc558eb4c0c3dce (diff)
picard-markDuplicates: fix input and output types
Diffstat (limited to 'tools')
-rw-r--r--tools/picard-markDuplicates.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/picard-markDuplicates.nix b/tools/picard-markDuplicates.nix
index 6b15310..957a05e 100644
--- a/tools/picard-markDuplicates.nix
+++ b/tools/picard-markDuplicates.nix
@@ -9,7 +9,10 @@ with lib;
with types;
assert (matchFiletype "picard-markDuplicates" { bam = _: true; } inputBam);
-assert !(matchFileSorting "picard-markDuplicates" { none = _: true; } inputBam);
+assert (matchFileSorting
+ "picard-markDuplicates"
+ { coord = _: true; name = _: true; }
+ inputBam);
# Note that picard markDuplicates has different behaviour depending on whether the input
# is name-sorted or coordinate-sorted.
@@ -26,4 +29,5 @@ stage {
M=$metrics \
${optionalString (flags != null) flags}
'';
+ passthru.filetype = inputBam.filetype;
}