Class Bio::DAS::SEGMENT
In: lib/bio/io/das.rb  (CVS)
Parent: Object

Methods

new   region  

Attributes

description  [RW] 
entry_id  [RW] 
features  [RW] 
label  [RW] 
orientation  [RW] 
start  [RW] 
stop  [RW] 
subparts  [RW] 
types  [RW] 
version  [RW] 

Public Class methods

[Source]

# File lib/bio/io/das.rb, line 350
    def initialize
      @features = Array.new             # for FEATURE
      @types = Array.new                # for TYPE
    end

[Source]

# 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

[Validate]