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
#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_id ⇒ Object
Returns
164 165 166 |
# File 'lib/bio/appl/tmhmm/report.rb', line 164 def entry_id @entry_id end |
#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 |
#status ⇒ Object
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 |
#version ⇒ Object
Returns
167 168 169 |
# File 'lib/bio/appl/tmhmm/report.rb', line 167 def version @version end |
Instance Method Details
#to_s ⇒ Object
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 |