Class: Bio::Map::Marker
- Inherits:
-
Object
- Object
- Bio::Map::Marker
- 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)
-
- (Object) mappings_as_marker
Mappings.
-
- (Object) name
Name of the marker.
Instance Method Summary (collapse)
-
- (Marker) initialize(name)
constructor
Builds a new Bio::Map::Marker object
Arguments:
-
name: name of the marker
Returns
new Bio::Map::Marker object.
-
Methods included from ActsLikeMarker
#add_mapping_as_marker, #mapped_to?, #mappings_on, #positions_on
Constructor Details
- (Marker) initialize(name)
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 |