Class: Bio::TMHMM::TMH

Inherits:
Object show all
Defined in:
lib/bio/appl/tmhmm/report.rb

Overview

Container class of the trainsmembrane helix(TMH) and the other

segments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry_id = nil, version = nil, status = nil, range = nil) ⇒ TMH

Returns a new instance of TMH.



178
179
180
181
182
183
# File 'lib/bio/appl/tmhmm/report.rb', line 178

def initialize(entry_id = nil, version = nil, status = nil, range = nil)
  @entry_id = entry_id
  @version  = version
  @status   = status
  @range    = range
end

Instance Attribute Details

#entry_idObject

Returns



164
165
166
# File 'lib/bio/appl/tmhmm/report.rb', line 164

def entry_id
  @entry_id
end

#rangeObject Also known as: pos

Returns an Range of TMH position.



173
174
175
# File 'lib/bio/appl/tmhmm/report.rb', line 173

def range
  @range
end

#statusObject

Returns the status of the TMH. (“outside”, “TMhelix” or “inside”).



170
171
172
# File 'lib/bio/appl/tmhmm/report.rb', line 170

def status
  @status
end

#versionObject

Returns



167
168
169
# File 'lib/bio/appl/tmhmm/report.rb', line 167

def version
  @version
end

Instance Method Details

#to_sObject



186
187
188
# File 'lib/bio/appl/tmhmm/report.rb', line 186

def to_s
  [@entry_id, @version, @status, @range.first, @range.last].join("\t")
end