]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/read_fastq
adding bzip2 support in ruby
[biopieces.git] / bp_bin / read_fastq
index 0c5b9b2cff975de128aa8306db786d7af5ef1882..e4fd75f257357988657a205f984a41f356d9eeb4 100755 (executable)
@@ -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