aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/whisper-align.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/whisper-align.nix b/tools/whisper-align.nix
index 38bcedf..b6130bc 100644
--- a/tools/whisper-align.nix
+++ b/tools/whisper-align.nix
@@ -2,6 +2,7 @@
, ref
, bamOutput ? true
, flags ? null
+, RG ? { }
, indexAttrs ? { }
}:
@@ -33,6 +34,7 @@ stage {
-stdout \
index ${fq input1} \
${optionalString (input2 != null) (fq input2)} \
+ ${optionalString (RG ? ID) "-rg '@RG\\t${concatMapAttrsStringsSep "\\t" (k: v: "${k}:${v}") RG}'"} \
> $out
'';
passthru.filetype = if bamOutput then filetype.bam { inherit ref; sorting = sort.none { }; } else filetype.sam { inherit ref; sorting = sort.none { }; };