X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fdigest_seq;h=2aa9ff9837fded6ad832d44fffacf99b08f96742;hb=5de6112b70b59420b245ce636a8b2e3c90acbe00;hp=b4451342da493e456e0f25e9521fa7371a7f8fdd;hpb=2acc777adfd5196ef5a2afd607a42023ea33b461;p=biopieces.git diff --git a/bp_bin/digest_seq b/bp_bin/digest_seq index b445134..2aa9ff9 100755 --- a/bp_bin/digest_seq +++ b/bp_bin/digest_seq @@ -39,7 +39,7 @@ options = Biopieces.options_parse(ARGV, casts) Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| input.each_record do |record| - if record.has_key? :SEQ_NAME and record.has_key? :SEQ + if record[:SEQ_NAME] and record[:SEQ] seq = Seq.new_bp(record) seq.each_digest(options[:pattern].to_s, options[:cut_pos]) do |digest|