]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/shred_seq
refactoring of ruby code s/has_key?/[]/
[biopieces.git] / bp_bin / shred_seq
index 465f08855bec36eb769bf319e34b5c5ff25d0d61..ffd79cb9252bef5dbf2f95258779c1960ef41cf7 100755 (executable)
@@ -83,7 +83,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 and record[:SEQ].length >= options[:size]
+    if record[:SEQ] and record[:SEQ].length >= options[:size]
       entry      = Seq.new(record[:SEQ_NAME], record[:SEQ], record[:SCORES])
       entry.type = 'dna'