From c6f5d0c3f00a2cb01a276afc9ac0449a094ddfbf Mon Sep 17 00:00:00 2001 From: "Dr. K.D. Murray" Date: Mon, 27 May 2024 09:49:58 +0200 Subject: [PATCH] fix broken fastq format --- blsl/ildemux.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blsl/ildemux.py b/blsl/ildemux.py index 36c91a3..2e13b43 100644 --- a/blsl/ildemux.py +++ b/blsl/ildemux.py @@ -63,7 +63,8 @@ def __init__(self, outfile, size=2**27, sname=""): self.sname = sname def writelines(self, lines): - self.write("".join(lines).encode('ascii')) + self.write("\n".join(lines).encode('ascii')) + self.write(b"\n") def write(self, somebytes): if self.first: @@ -184,7 +185,7 @@ def main(argv=None): ofile.writelines(pair) finally: with open(args.outdir / "stats.tsv", "w") as fh: - print("sample", "n_pairs", file=fh, sep="\t") + print("sample", "nspots", file=fh, sep="\t") for samp, n in stats.most_common(): print(samp, n, file=fh, sep="\t")