Class: Bio::DAS::SEGMENT

Inherits:
Object show all
Defined in:
lib/bio/io/das.rb

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (SEGMENT) initialize

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

- (Object) description

Returns the value of attribute description



354
355
356
# File 'lib/bio/io/das.rb', line 354

def description
  @description
end

- (Object) entry_id

Returns the value of attribute entry_id



354
355
356
# File 'lib/bio/io/das.rb', line 354

def entry_id
  @entry_id
end

- (Object) features

Returns the value of attribute features



354
355
356
# File 'lib/bio/io/das.rb', line 354

def features
  @features
end

- (Object) label

Returns the value of attribute label



354
355
356
# File 'lib/bio/io/das.rb', line 354

def label
  @label
end

- (Object) orientation

Returns the value of attribute orientation



354
355
356
# File 'lib/bio/io/das.rb', line 354

def orientation
  @orientation
end

- (Object) start

Returns the value of attribute start



354
355
356
# File 'lib/bio/io/das.rb', line 354

def start
  @start
end

- (Object) stop

Returns the value of attribute stop



354
355
356
# File 'lib/bio/io/das.rb', line 354

def stop
  @stop
end

- (Object) subparts

Returns the value of attribute subparts



354
355
356
# File 'lib/bio/io/das.rb', line 354

def subparts
  @subparts
end

- (Object) types

Returns the value of attribute types



354
355
356
# File 'lib/bio/io/das.rb', line 354

def types
  @types
end

- (Object) version

Returns the value of attribute version



354
355
356
# File 'lib/bio/io/das.rb', line 354

def version
  @version
end

Class Method Details

+ (Object) region(entry_id, start, stop)



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