We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c03a1a9 commit a40ae71Copy full SHA for a40ae71
1 file changed
bin/filter_bam_fragment_length.py
@@ -61,7 +61,7 @@ def filter_bam(infile, outfile, fraglen, allreads):
61
bamfile = pysam.AlignmentFile(infile, "rb")
62
bamwrite = pysam.AlignmentFile(outfile + ".filtered.bam", "wb", template=bamfile)
63
64
- for read in bamfile.fetch():
+ for read in bamfile.fetch(until_eof=True):
65
if allreads:
66
if read.query_length >= fraglen:
67
bamwrite.write(read)
0 commit comments