Skip to content

Commit

Permalink
fix broken fastq format
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed May 27, 2024
1 parent 90bbeee commit c6f5d0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blsl/ildemux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit c6f5d0c

Please sign in to comment.