X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fread_fasta;h=e6494405f4ae7ebd844cebdebf67e495b036acfc;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=0508ceb712f828209966196a85d929244f9e110e;hpb=190b533c608a8ef8fc66f842824a1f6503996d20;p=biopieces.git diff --git a/bp_bin/read_fasta b/bp_bin/read_fasta index 0508ceb..e649440 100755 --- a/bp_bin/read_fasta +++ b/bp_bin/read_fasta @@ -47,14 +47,14 @@ 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| - Fasta.open(file, mode='r') do |fasta| + Fasta.open(file, 'r') do |fasta| fasta.each do |entry| output.puts entry.to_bp num += 1 - if options.has_key? :num and options[:num] == num + if options[:num] and options[:num] == num last = true break end