From fd72796ba5311e0edbc216d9d13241cc10e64bb2 Mon Sep 17 00:00:00 2001 From: Psy-Fer Date: Tue, 5 Nov 2024 17:48:03 +1100 Subject: [PATCH] get header from sam stream --- scripts/u2t.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/u2t.py b/scripts/u2t.py index 75ed3ed..1e11785 100644 --- a/scripts/u2t.py +++ b/scripts/u2t.py @@ -211,6 +211,8 @@ def main(): print(l) elif args.format == "sam": reads = stream_sam() + # get the header, as first output from generator + header = next(reads) #write header for l in header: print(l)