if record.has_key? :SEQ
entry = Seq.new(record[:SEQ_NAME], record[:SEQ], "dna", record[:SCORES])
if record.has_key? :SEQ
entry = Seq.new(record[:SEQ_NAME], record[:SEQ], "dna", record[:SCORES])
- if cache[entry.seq.upcase] and options[:cache]
+ if cache[entry.seq.upcase.to_sym] and options[:cache]
match = cache[entry.seq.upcase]
else
match = entry.adaptor_find(adaptor, adaptor_disamb, pos, options[:edit_distance])
match = cache[entry.seq.upcase]
else
match = entry.adaptor_find(adaptor, adaptor_disamb, pos, options[:edit_distance])
- cache[entry.seq.upcase] = match if match and options[:cache]
+ cache[entry.seq.upcase.to_sym] = match if match and options[:cache]