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.



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

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

Instance Attribute Details

#gradeObject (readonly)

Retruns “PRIMARY” or “SECONDARY” of helix.



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

def grade
  @grade
end

#rangeObject (readonly)

Returns aRng of transmembrane helix



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

def range
  @range
end

#sequenceObject (readonly)

Returns the sequence. of transmembrane helix.



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

def sequence
  @sequence
end