]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/find_homopolymers
refactoring of ruby code s/has_key?/[]/
[biopieces.git] / bp_bin / find_homopolymers
index 3cad86f505fd60a28a251dbe7967561347ed4098..89b8e8c1d03c3360fe1463855c437b31ee9318c8 100755 (executable)
@@ -39,7 +39,7 @@ options = Biopieces.options_parse(ARGV, casts)
 
 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(nil, record[:SEQ])
 
       record[:HOMOPOL_MAX] = seq.homopol_max(options[:min])