From b714521422af63a910ff660dcc019cbaeb6a5d17 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Tue, 21 May 2019 18:23:02 +1000 Subject: fastp: input filetypes --- tools/fastp-check.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/fastp-check.nix b/tools/fastp-check.nix index be807d6..bd522d8 100644 --- a/tools/fastp-check.nix +++ b/tools/fastp-check.nix @@ -7,12 +7,12 @@ } : with bionix; -with pkgs.lib; +with lib; with types; -# Match input file type—how to do .fq and .fq.gz? Does bz2 work? - let + fq = f: matchFiletype "fastp-input" { fq = _: f; gz = matchFiletype' "fastp-input" { fq = _: f; }; } f; + out = stage { name = "fastp"; @@ -22,10 +22,10 @@ let mkdir -p $out fastp \ ${optionalString (flags != null) flags} \ - -i ${input1} \ + -i ${fq input1} \ -o fastq1.fq.gz \ ${optionalString (input2 != null) '' - -I ${input2} \ + -I ${fq input2} \ -O fastq2.fq.gz \ cp fastq2.fq.gz $fastq2 -- cgit v1.2.3