Class: Bio::SOSUI::Report::TMH

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

Overview

Bio::SOSUI::Report::TMH

Container class for transmembrane helix information.

TM 1   31-  53 SECONDARY   HIRMTFLRKVYSILSLQVLLTTV

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range, grade, sequence) ⇒ TMH

Sets values.



89
90
91
92
93
# File 'lib/bio/appl/sosui/report.rb', line 89

def initialize(range, grade, sequence)
  @range = range
  @grade = grade
  @sequence = sequence
end

Instance Attribute Details

#gradeObject (readonly)

Retruns “PRIMARY” or “SECONDARY” of helix.



83
84
85
# File 'lib/bio/appl/sosui/report.rb', line 83

def grade
  @grade
end

#rangeObject (readonly)

Returns aRng of transmembrane helix



80
81
82
# File 'lib/bio/appl/sosui/report.rb', line 80

def range
  @range
end

#sequenceObject (readonly)

Returns the sequence. of transmembrane helix.



86
87
88
# File 'lib/bio/appl/sosui/report.rb', line 86

def sequence
  @sequence
end