X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_fastq;h=e4fd75f257357988657a205f984a41f356d9eeb4;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=0c5b9b2cff975de128aa8306db786d7af5ef1882;hpb=e33344a902a0a9f48698d19b72098841bad7be81;p=biopieces.git diff --git a/bp_bin/read_fastq b/bp_bin/read_fastq index 0c5b9b2..e4fd75f 100755 --- a/bp_bin/read_fastq +++ b/bp_bin/read_fastq @@ -65,10 +65,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| io1 = Fastq.open(file1, 'r') io2 = Fastq.open(file2, 'r') - while not io1.eof? and not io2.eof? - entry1 = io1.get_entry - entry2 = io2.get_entry - + while entry1 = io1.get_entry and entry2 = io2.get_entry if encoding == :auto if entry1.qual_base33? or entry2.qual_base33? encoding = :base_33