Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
input.each_record do |record|
- if record.has_key? :SEQ
+ if record[:SEQ]
trim_beg = 0
trim_end = record[:SEQ].length
record[:SEQ] = record[:SEQ][trim_beg ... trim_end]
record[:SEQ_LEN] = record[:SEQ].length
- record[:SCORES] = record[:SCORES][trim_beg ... trim_end] if record.has_key? :SCORES
+ record[:SCORES] = record[:SCORES][trim_beg ... trim_end] if record[:SCORES]
end
output.puts record