require 'forwardable' module NpSearch # A class to hold sequence data class Sequence extend Forwardable def_delegators NpSearch, :opt attr_accessor :id attr_accessor :seq attr_accessor :signalp attr_accessor :translated_frame attr_accessor :orf_index attr_accessor :score def initialize(id, seq, signalp_output) @id = id @seq = seq @signalp = signalp_output @translated_frame = 0 # 0 means opt[:type] == :protein @orf_index = 0 @score = 0 end end end