aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2022-08-23 18:36:40 +1000
committerJustin Bedo <cu@cua0.org>2022-09-26 11:51:52 +1000
commit81cfa50e6b345942951b68eac0e184ea025f2ae4 (patch)
tree65064330cded2a7aa448ef5dce0bcdab36f37211 /tools
parent5107449eeb29963b98cb5b6ded6418d930590c23 (diff)
last: align only a single fastq file
Diffstat (limited to 'tools')
-rw-r--r--tools/last-align.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/last-align.nix b/tools/last-align.nix
index fbc0914..0643419 100644
--- a/tools/last-align.nix
+++ b/tools/last-align.nix
@@ -5,9 +5,7 @@
, indexAttrs ? { }
}:
-{ input1
-, input2 ? null
-}:
+input:
with bionix;
with lib;
@@ -23,13 +21,13 @@ stage {
last-train -P $NIX_BUILD_CORES \
${optionalString (trainFlags != null) flags} \
${bionix.lastal.index indexAttrs ref}/index \
- ${fq input1} ${optionalString (input2 != null) (fq input2)}\
+ ${fq input} -Q 1\
> train
lastal -P $NIX_BUILD_CORES \
${optionalString (flags != null) flags} \
${bionix.lastal.index indexAttrs ref}/index \
-p train \
- ${fq input1} ${optionalString (input2 != null) (fq input2)}\
+ ${fq input} -Q 1 \
> tmp
cp tmp $out
'';