Skip to content

Commit

Permalink
get header from sam stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Psy-Fer committed Nov 5, 2024
1 parent b60e203 commit fd72796
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/u2t.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd72796

Please sign in to comment.