Class Ensembl::Core::Gap
In: lib/ensembl/core/slice.rb
Parent: Object

DESCRIPTION

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

Methods

display_name   new  

External Aliases

size -> length

Attributes

coord_system  [RW] 
size  [RW] 

Public Class methods

DESCRIPTION

Create a new Gap object from scratch.

USAGE

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

Arguments:

  • coord_system: CoordSystem object (required)
  • length: length of the gap (required)
Returns:Gap object

[Source]

     # File lib/ensembl/core/slice.rb, line 622
622:       def initialize(coord_system, size)
623:         @coord_system, @size = coord_system, size
624:       end

Public Instance methods

[Source]

     # File lib/ensembl/core/slice.rb, line 627
627:       def display_name
628:         return @coord_system.name + ":gap:" + @size.to_s
629:       end

[Validate]