Class: Bio::DAS::SEGMENT
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#entry_id ⇒ Object
Returns the value of attribute entry_id.
-
#features ⇒ Object
Returns the value of attribute features.
-
#label ⇒ Object
Returns the value of attribute label.
-
#orientation ⇒ Object
Returns the value of attribute orientation.
-
#start ⇒ Object
Returns the value of attribute start.
-
#stop ⇒ Object
Returns the value of attribute stop.
-
#subparts ⇒ Object
Returns the value of attribute subparts.
-
#types ⇒ Object
Returns the value of attribute types.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SEGMENT
constructor
A new instance of SEGMENT.
Constructor Details
#initialize ⇒ SEGMENT
Returns a new instance of SEGMENT.
350 351 352 353 |
# File 'lib/bio/io/das.rb', line 350 def initialize @features = Array.new # for FEATURE @types = Array.new # for TYPE end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def description @description end |
#entry_id ⇒ Object
Returns the value of attribute entry_id.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def entry_id @entry_id end |
#features ⇒ Object
Returns the value of attribute features.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def features @features end |
#label ⇒ Object
Returns the value of attribute label.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def label @label end |
#orientation ⇒ Object
Returns the value of attribute orientation.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def orientation @orientation end |
#start ⇒ Object
Returns the value of attribute start.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def stop @stop end |
#subparts ⇒ Object
Returns the value of attribute subparts.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def subparts @subparts end |
#types ⇒ Object
Returns the value of attribute types.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def types @types end |
#version ⇒ Object
Returns the value of attribute version.
354 355 356 |
# File 'lib/bio/io/das.rb', line 354 def version @version end |
Class Method Details
.region(entry_id, start, stop) ⇒ Object
342 343 344 345 346 347 348 |
# File 'lib/bio/io/das.rb', line 342 def self.region(entry_id, start, stop) segment = self.new segment.entry_id = entry_id segment.start = start segment.stop = stop return segment end |