Class: Bio::TMHMM::TMH
Overview
Container class of the trainsmembrane helix(TMH) and the other
segments.
Instance Attribute Summary collapse
-
#entry_id ⇒ Object
Returns.
-
#range ⇒ Object
(also: #pos)
Returns an Range of TMH position.
-
#status ⇒ Object
Returns the status of the TMH.
-
#version ⇒ Object
Returns.
Instance Method Summary collapse
-
#initialize(entry_id = nil, version = nil, status = nil, range = nil) ⇒ TMH
constructor
A new instance of TMH.
- #to_s ⇒ Object
Constructor Details
permalink #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
permalink #entry_id ⇒ Object
Returns
164 165 166 |
# File 'lib/bio/appl/tmhmm/report.rb', line 164 def entry_id @entry_id end |
permalink #range ⇒ Object 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 |
Instance Method Details
permalink #to_s ⇒ Object
[View source]
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 |