Class: Bio::Map::Marker

Inherits:
Object show all
Includes:
ActsLikeMarker
Defined in:
lib/bio/map.rb

Overview

Description

This class handles markers that are anchored to a Bio::Map::SimpleMap. It includes Bio::Map::ActsLikeMarker, and therefore supports the methods of that module.

Usage

marker_a = Bio::Map::Marker.new('marker_a')
marker_b = Bio::Map::Marker.new('marker_b')

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ActsLikeMarker

#add_mapping_as_marker, #mapped_to?, #mappings_on, #positions_on

Constructor Details

#initialize(name) ⇒ Marker

Builds a new Bio::Map::Marker object


Arguments:

  • name: name of the marker

Returns

new Bio::Map::Marker object



395
396
397
398
# File 'lib/bio/map.rb', line 395

def initialize(name)
  @name = name
  @mappings_as_marker = Array.new
end

Instance Attribute Details

#mappings_as_markerObject

Mappings



404
405
406
# File 'lib/bio/map.rb', line 404

def mappings_as_marker
  @mappings_as_marker
end

#nameObject

Name of the marker



401
402
403
# File 'lib/bio/map.rb', line 401

def name
  @name
end