diff options
author | Justin Bedo <cu@cua0.org> | 2018-10-08 14:22:50 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-10-08 14:22:50 +1100 |
commit | ca3d5d1550d068b62dbc836b07abefc3bb06cab9 (patch) | |
tree | e6c987d4931c7876db5a12031257141f5d7a4a25 | |
parent | 871ef64f3c43199dfa01216ac86db56650c2c8a2 (diff) |
Fix type in samtools-view
-rw-r--r-- | tools/samtools-view.nix | 4 |
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 ]; |