class Ensembl::Core::Gap

The Gap class is similar to the Slice object, but describes a gap and therefore can easily be described by coordinate system and size.

Attributes

coord_system[RW]
length[RW]
size[RW]

Public Class Methods

new(coord_system, size) click to toggle source

Create a new Gap object from scratch.

@example

my_coord_system = CoordSystem.find_by_name('chromosome')
# Create a gap of 10kb.
gap = Gap.new(my_coord_system, 10000)

@param [CoordSystem] coord_system Coordinate system object @param [Integer] size Length of the gap @return [Gap] Gap object

# File lib/bio-ensembl/core/slice.rb, line 646
def initialize(coord_system, size)
  @coord_system, @size = coord_system, size
end

Public Instance Methods

display_name() click to toggle source
# File lib/bio-ensembl/core/slice.rb, line 651
def display_name
  return @coord_system.name + ":gap:" + @size.to_s
end