From bac9248a5e08e8afdf5485a6e27cfe72e1ca5090 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 29 Oct 2021 17:39:01 +1100 Subject: treewide reformatting and simplification - simplify with statix - reformat with nixpkgs-fmt --- tools/snap-align.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/snap-align.nix') diff --git a/tools/snap-align.nix b/tools/snap-align.nix index 279cf20..f0bcb21 100644 --- a/tools/snap-align.nix +++ b/tools/snap-align.nix @@ -2,7 +2,7 @@ , ref , bamOutput ? true , flags ? null -, indexAttrs ? {} +, indexAttrs ? { } }: { input1 @@ -18,7 +18,8 @@ let fa = f: matchFiletype "snap-ref" { fa = _: f; } f; fq = f: matchFiletype "snap-input" { fq = _: f; gz = matchFiletype' "snap-input" { fq = _: f; }; } f; -in stage { +in +stage { name = "snap-align"; buildInputs = with pkgs; [ bionix.snap.app bc ] ++ optional bamOutput samtools; buildCommand = '' @@ -32,6 +33,6 @@ in stage { ${optionalString (flags != null) flags} \ | samtools sort -n > $out ''; - passthru.filetype = if bamOutput then filetype.bam {ref = ref; sorting = sort.none {};} else filetype.sam {ref = ref; sorting = sort.name {};}; + passthru.filetype = if bamOutput then filetype.bam { inherit ref; sorting = sort.none { }; } else filetype.sam { inherit ref; sorting = sort.name { }; }; passthru.multicore = true; } -- cgit v1.2.3