From d4fe5ce2aaea3f951fe21094ccfa90360c12c760 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 27 Mar 2020 10:59:44 +1100 Subject: update exampes to use nixpkgs.lib.pipe --- examples/call.nix | 3 ++- examples/ex-nextflow/nextflow-example1.nix | 4 ++-- examples/ex-tnpair/tnpair.nix | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/call.nix b/examples/call.nix index 0e4ea05..90832ee 100644 --- a/examples/call.nix +++ b/examples/call.nix @@ -7,9 +7,10 @@ ,ref ? bionix.ref.grch38.seq }: with bionix; +with lib; let - preprocess = pipe [ + preprocess = flip pipe [ (bwa.align { inherit ref; }) (samtools.fixmate {}) (samtools.sort {}) diff --git a/examples/ex-nextflow/nextflow-example1.nix b/examples/ex-nextflow/nextflow-example1.nix index 0ec1cae..4f00431 100644 --- a/examples/ex-nextflow/nextflow-example1.nix +++ b/examples/ex-nextflow/nextflow-example1.nix @@ -24,7 +24,7 @@ let ''; }; -in pipe [ +in pipe input [ splitSequences (each reverse) -] input +] diff --git a/examples/ex-tnpair/tnpair.nix b/examples/ex-tnpair/tnpair.nix index ada96c8..51cd703 100644 --- a/examples/ex-tnpair/tnpair.nix +++ b/examples/ex-tnpair/tnpair.nix @@ -11,7 +11,7 @@ with lib; let input = mapAttrs (_: fetchFastQGZ); - preprocess = pipe [ + preprocess = flip pipe [ input (bwa.align { ref = fetchFastA ref; }) (samtools.fixmate {}) -- cgit v1.2.3