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