Class | Bio::Map::SimpleMap |
In: |
lib/bio/map.rb
|
Parent: | Object |
This class handles the essential storage of name, type and units of a map. It includes Bio::Map::ActsLikeMap, and therefore supports the methods of that module.
my_map1 = Bio::Map::SimpleMap.new('RH_map_ABC (2006)', 'RH', 'cR') my_map1.add_marker(Bio::Map::Marker.new('marker_a', '17') my_map1.add_marker(Bio::Map::Marker.new('marker_b', '5')
length | [RW] | Length of the map |
mappings_as_map | [RW] | Mappings |
name | [RW] | Name of the map |
type | [RW] | Type of the map |
units | [RW] | Units of the map |
Builds a new Bio::Map::SimpleMap object
Arguments:
Returns: | new Bio::Map::SimpleMap object |
# File lib/bio/map.rb, line 353 353: def initialize (name = nil, type = nil, length = nil, units = nil) 354: @name, @type, @length, @units = name, type, length, units 355: @mappings_as_map = Array.new 356: end