Skip to content

Commit 32dfeb0

Browse files
authored
Merge pull request #550 from nf-core/dev
Get final python script version
2 parents 102a62f + 249d5f4 commit 32dfeb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/filter_bam_fragment_length.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def filter_bam(infile, outfile, fraglen, allreads):
6161
bamfile = pysam.AlignmentFile(infile, "rb")
6262
bamwrite = pysam.AlignmentFile(outfile + ".filtered.bam", "wb", template=bamfile)
6363

64-
for read in bamfile.fetch():
64+
for read in bamfile.fetch(until_eof=True):
6565
if allreads:
6666
if read.query_length >= fraglen:
6767
bamwrite.write(read)

0 commit comments

Comments
 (0)