Skip to content

Commit

Permalink
misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Apr 19, 2023
1 parent af89640 commit bfe231a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blsl/ildemux.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def gethdrdat(hdr):

def fqp2idx(fqp):
"""fastq pair to index pair ACGT+ACGT"""
s1, i1, ip1 = gethdrdat(fqp[0].rstrip("\n"))
s1, i1, ip1 = gethdrdat(fqp[0])
s2, i2, ip2 = gethdrdat(fqp[4])
assert(s1 == s2)
assert(ip1 == ip2)
Expand Down
2 changes: 1 addition & 1 deletion blsl/ilsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def main(argv):
help="Input fastq file")
args=ap.parse_args(argv)


if args.input.suffix == ".gz":
stream = gzip.open(args.input, "rb")
else:
Expand All @@ -43,5 +42,6 @@ def main(argv):
args.out.write(b"".join(pair))

print(f"Done! Sampled {sampled} of {total} pairs", file=stderr)

if __name__ == "__main__":
main()

0 comments on commit bfe231a

Please sign in to comment.