X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_fastq;h=e4fd75f257357988657a205f984a41f356d9eeb4;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=0c5b9b2cff975de128aa8306db786d7af5ef1882;hpb=b1fadc0ce9224b6a13f8deae332bb902a54c65af;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