]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/lib/maasha/fastq.rb
added crufty puts method to fastq.rb
[biopieces.git] / code_ruby / lib / maasha / fastq.rb
index a6b3610e88c6d3abd632c47b46aa31519594591d..37d0bbbeeb1fe08aa46e192764d9f6675c6f7427 100644 (file)
@@ -49,6 +49,16 @@ class Fastq < Filesys
       nil
     end
   end
+
+  # TODO - this should be some custom to_s method instead.
+  def puts(record)
+    if record[:SEQ_NAME] and record[:SEQ] and record[:SCORES]
+      @io.print "@#{record[:SEQ_NAME]}\n"
+      @io.print "#{record[:SEQ]}\n"
+      @io.print "+\n"
+      @io.print "#{record[:SCORES]}\n"
+    end
+  end
 end