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.



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

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

Instance Attribute Details

#gradeObject (readonly)

Retruns “PRIMARY” or “SECONDARY” of helix.



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

def grade
  @grade
end

#rangeObject (readonly)

Returns aRng of transmembrane helix



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

def range
  @range
end

#sequenceObject (readonly)

Returns the sequence. of transmembrane helix.



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

def sequence
  @sequence
end