]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/calc_N50
refactoring of ruby code s/has_key?/[]/
[biopieces.git] / bp_bin / calc_N50
index 3e56af9a35c184143676034c560d5f4c957801dc..13c8240e29274b9adef5e6860187154646c3914f 100755 (executable)
@@ -44,7 +44,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
   input.each_record do |record|
     output.puts record unless options[:no_stream]
 
-    if record.has_key? :SEQ
+    if record[:SEQ]
       total   += record[:SEQ].length
       lengths << record[:SEQ].length
     end