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.



349
350
351
352
# File 'lib/bio/io/das.rb', line 349

def initialize
  @features = Array.new		# for FEATURE
  @types = Array.new		# for TYPE
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#entry_idObject

Returns the value of attribute entry_id.



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

def entry_id
  @entry_id
end

#featuresObject

Returns the value of attribute features.



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

def features
  @features
end

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#orientationObject

Returns the value of attribute orientation.



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

def orientation
  @orientation
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#stopObject

Returns the value of attribute stop.



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

def stop
  @stop
end

#subpartsObject

Returns the value of attribute subparts.



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

def subparts
  @subparts
end

#typesObject

Returns the value of attribute types.



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

def types
  @types
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Class Method Details

.region(entry_id, start, stop) ⇒ Object



341
342
343
344
345
346
347
# File 'lib/bio/io/das.rb', line 341

def self.region(entry_id, start, stop)
  segment = self.new
  segment.entry_id = entry_id
  segment.start = start
  segment.stop = stop
  return segment
end