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.



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

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



155
156
157
# File 'lib/bio/appl/tmhmm/report.rb', line 155

def entry_id
  @entry_id
end

#rangeObject Also known as: pos

Returns an Range of TMH position.



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

def range
  @range
end

#statusObject

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



161
162
163
# File 'lib/bio/appl/tmhmm/report.rb', line 161

def status
  @status
end

#versionObject

Returns



158
159
160
# File 'lib/bio/appl/tmhmm/report.rb', line 158

def version
  @version
end

Instance Method Details

#to_sObject



177
178
179
# File 'lib/bio/appl/tmhmm/report.rb', line 177

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