]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/write_fasta_files
refactoring of ruby code s/has_key?/[]/
[biopieces.git] / bp_bin / write_fasta_files
index debea31cb5c073f3ed6cbbacdb22a3096c7cd201..36011ed411fad74d891f2f12f7108bfc02eb91a2 100755 (executable)
@@ -48,7 +48,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
     if record[:SEQ_NAME] and record[:SEQ] and record[key]
       seq = Seq.new_bp(record)
 
-      if fh_hash.has_key? record[key].to_sym
+      if fh_hash[record[key].to_sym]
         fasta_io = fh_hash[record[key].to_sym]
       else
         fasta_file = File.join(options[:dir], record[key] + ".fasta")