]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/analyze_assembly
refactoring of ruby code s/has_key?/[]/
[biopieces.git] / bp_bin / analyze_assembly
index 3b9748db523c20c412ea21e52edd9c206402b25b..a9a6d12960fa9d743f784451a7a61d3749be4406 100755 (executable)
@@ -53,7 +53,7 @@ outfile = File.join(tmpdir, "out.prodigal")
 Fasta.open(infile, mode="w") do |fasta_output|
   Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
     input.each_record do |record|
-      if record.has_key? :SEQ
+      if record[:SEQ]
         seq = Seq.new_bp(record)
 
         total   += record[:SEQ].length