aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorl-d-s <distefano.l@wehi.edu.au>2019-05-30 15:09:30 +1000
committerl-d-s <distefano.l@wehi.edu.au>2019-05-30 15:09:30 +1000
commitfb1cf1c39109cdd0e76687e5788561407d01d629 (patch)
tree1684161441d5e2c2f8f2a7d6944f35b97582be05 /tools
parentae7f055db36fda71d28e58fd22ee6ffc25e01dee (diff)
Add picard-markDuplicates - need to handle sorting ambiguity.
Diffstat (limited to 'tools')
-rw-r--r--tools/picard-markDuplicates.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/picard-markDuplicates.nix b/tools/picard-markDuplicates.nix
index aff1e32..8906f9e 100644
--- a/tools/picard-markDuplicates.nix
+++ b/tools/picard-markDuplicates.nix
@@ -8,8 +8,11 @@ with bionix;
with lib;
with types;
-assert (matchFiletype "picard-markDuplicates" { bam = _: true; } input);
-assert (matchFileSorting "picard-markDuplicates" { coord = _: true; } input);
+assert (matchFiletype "picard-markDuplicates" { bam = _: 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);
stage {
name = "picard-markDuplicates";
@@ -23,4 +26,4 @@ stage {
M=$metrics \
${optionalString (flags != null) flags}
'';
-} \ No newline at end of file
+}