X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=bp_bin%2Fread_fasta;h=8bc5874f55dc0a6399e78c6a29167af9fdb773c1;hb=5a9b7c80e4e4428e404575ed3c0290cde15a7402;hp=0508ceb712f828209966196a85d929244f9e110e;hpb=658943d07afe151e66c8ddfa0fc1708a48515f9d;p=biopieces.git diff --git a/bp_bin/read_fasta b/bp_bin/read_fasta index 0508ceb..8bc5874 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.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