Skip to content

Commit 9386429

Browse files
committed
bam to bed only read bam
1 parent 470f36b commit 9386429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tgirt_seq_tools/fragment_pairs.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def bam_to_bed(bam_file, out_file, int min_size, int max_size):
5454
long start, end
5555

5656
pair_count = 0
57-
with pysam.Samfile(bam_file) as in_bam:
57+
with pysam.Samfile(bam_file,'rb') as in_bam:
5858
while True:
5959
try:
6060
read_1 = in_bam.next()

0 commit comments

Comments
 (0)