X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_genbank;h=006cb50f59fe454c7c2d765e774327db3cb983d6;hb=48bea5c28b89dc5586d0bddb338ccd6ba23aa1f9;hp=d40f1aafec1d6659b9f0847668185ab23de12702;hpb=c4f14c511655d92281b6d70363de57b77a9b6045;p=biopieces.git diff --git a/bp_bin/read_genbank b/bp_bin/read_genbank index d40f1aa..006cb50 100755 --- a/bp_bin/read_genbank +++ b/bp_bin/read_genbank @@ -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