aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-10-08 14:22:50 +1100
committerJustin Bedo <cu@cua0.org>2018-10-08 14:22:50 +1100
commitca3d5d1550d068b62dbc836b07abefc3bb06cab9 (patch)
treee6c987d4931c7876db5a12031257141f5d7a4a25 /tools
parent871ef64f3c43199dfa01216ac86db56650c2c8a2 (diff)
Fix type in samtools-view
Diffstat (limited to 'tools')
-rw-r--r--tools/samtools-view.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/samtools-view.nix b/tools/samtools-view.nix
index e1cdac1..b791534 100644
--- a/tools/samtools-view.nix
+++ b/tools/samtools-view.nix
@@ -11,12 +11,12 @@ with nixpkgs;
with lib;
with bionix.types;
-assert (matchFiletype "samtools-sort" { bam = _: true; sam = _: true; cram = _: true; } input);
+assert (matchFiletype "samtools-view" { bam = _: true; sam = _: true; cram = _: true; } input);
let
outfmtR = if outfmt != null then outfmt input else input.filetype;
fa = ref: matchFiletype "samtools-view-ref" { fa = _: ref; } ref;
- outfmtFlags = matchFiletype "samtools-sort-outfmt" { bam = _: "-O BAM"; sam = _: "-O SAM"; cram = x: "-O CRAM -T ${fa x.ref}"; } {filetype = outfmtR;};
+ outfmtFlags = matchFiletype "samtools-view-outfmt" { bam = _: "-O BAM"; sam = _: "-O SAM"; cram = x: "-O CRAM -T ${fa x.ref}"; } {filetype = outfmtR;};
in stdenv.mkDerivation {
name = "samtools-view";
buildInputs = [ samtools ];