]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/read_genbank
refactoring of assemble_pairs
[biopieces.git] / bp_bin / read_genbank
index d40f1aafec1d6659b9f0847668185ab23de12702..006cb50f59fe454c7c2d765e774327db3cb983d6 100755 (executable)
@@ -53,15 +53,15 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
   num  = 0
   last = false
 
-  if options.has_key? :data_in
+  if options[:data_in]
     options[:data_in].each do |file|
-      Genbank.open(file, mode='r') do |gb|
+      Genbank.open(file, 'r') do |gb|
         gb.each(hash_keys, hash_feats, hash_quals) do |entry|
           output.puts entry
 
           num += 1
 
-          if options.has_key? :num and options[:num] == num
+          if options[:num] and options[:num] == num
             last = true
             break
           end