Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output|
input.each_record do |record|
- if record.has_key? :SEQ and record.has_key? :SCORES
+ if record[:SEQ] and record[:SCORES]
entry = Seq.new_bp(record)
case options[:trim]
end
record.merge! entry.to_bp
-
- output.puts record if entry.length > 0
- else
- output.puts record
end
+
+ output.puts record
end
end