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

#initializeSEGMENT

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#entry_idObject

Returns the value of attribute entry_id.



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

def entry_id
  @entry_id
end

#featuresObject

Returns the value of attribute features.



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

def features
  @features
end

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#orientationObject

Returns the value of attribute orientation.



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

def orientation
  @orientation
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#stopObject

Returns the value of attribute stop.



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

def stop
  @stop
end

#subpartsObject

Returns the value of attribute subparts.



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

def subparts
  @subparts
end

#typesObject

Returns the value of attribute types.



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

def types
  @types
end

#versionObject

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