From 98e79735080b379e9a674a69771707951bbdc1ac Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 22 Nov 2018 10:44:16 +1100 Subject: samtools-sort: handle missing 'none' sorting case --- tools/samtools-sort.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/samtools-sort.nix b/tools/samtools-sort.nix index 5a02dab..e77f3db 100644 --- a/tools/samtools-sort.nix +++ b/tools/samtools-sort.nix @@ -19,7 +19,7 @@ assert (matchFiletype "samtools-sort" { bam = _: true; sam = _: true; cram = _: let outfmtR = if outfmt != null then outfmt input else input.filetype; outFmtFlags = matchFiletype "samtools-sort-outfmt" { bam = _: "-O BAM"; sam = _: "-O SAM"; cram = ref: "-O CRAM -T ${ref}"; } {filetype = outfmtR;}; - alreadySorted = matchFileSorting "samtools-sort" { name = _: nameSort; coord = _: !nameSort; } input; + alreadySorted = matchFileSorting "samtools-sort" { name = _: nameSort; coord = _: !nameSort; none = _: false;} input; in stdenv.mkDerivation { name = "samtools-sort"; buildInputs = [ samtools ]; -- cgit v1.2.3