aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-12-19 16:48:45 +1100
committerJustin Bedo <cu@cua0.org>2018-12-19 16:48:45 +1100
commitf8c01c02e4c8c331238989f3ff0fd594a60f67be (patch)
treeb8b5b14c2c5184311772cbcf86e972e4e14da706
parent5e508d19fb2927574229df09b64c3fbfc2b752eb (diff)
examples: update call.nix to use new pipe function
-rw-r--r--examples/call.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/call.nix b/examples/call.nix
index c9be673..2b63ae2 100644
--- a/examples/call.nix
+++ b/examples/call.nix
@@ -3,17 +3,17 @@
# against a reference genome (defaults to GRCH38), fixing mate information, and
# marking duplicates. Finally platypus is called over all samples.
{bionix ? import <bionix> {}
-,nixpkgs ? import <nixpkgs> {}
,inputs
,ref ? null}:
with bionix;
let
- preprocess = f:
- samtools.markdup {}
- (samtools.sort {}
- (samtools.fixmate {}
- (bwa.align {ref = if ref == null then bionix.ref.grch38.seq else ref;} f)));
+ preprocess = pipe [
+ (bwa.align {ref = if ref == null then bionix.ref.grch38.seq else ref;})
+ (samtools.fixmate {})
+ (samtools.sort {})
+ (samtools.markdup {})
+ ];
- in platypus.call {} (map preprocess inputs)
+in platypus.call {} (map preprocess inputs)