1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 51);
15 my $verbose = test_debug();
17 ok my $mapio = Bio::MapIO->new(-verbose => $verbose,
18 -format => 'mapmaker',
19 -file => test_input_file('mapmaker.out'));
21 my $map = $mapio->next_map;
23 isa_ok($map, 'Bio::Map::MapI');
26 is $map->type, 'Genetic';
27 is $map->name('test map'), 'test map'; # map name is unset for this data type
30 foreach my $marker ( $map->each_element ) {
32 is($marker->position->order,$count);
36 ok $mapio = Bio::MapIO->new(-format => 'mapmaker',
37 -file => test_input_file('mapmaker.txt'));
39 $map = $mapio->next_map;
40 is $map->length,382.5;
43 foreach my $marker ( $map->each_element ) {
45 is($marker->position->order,$count);
49 ok $mapio = Bio::MapIO->new(-format => 'fpc',
50 -file => test_input_file('ctgdemo.fpc'));
52 $map = $mapio->next_map;
55 is($map->version, 7.2);
56 is($map->modification_user, 'cari');
57 is($map->group_type, 'Chromosome');
58 is($map->group_abbr, 'Chr');
59 is($map->core_exists, 0);
62 foreach my $marker ($map->each_markerid) {
68 # add tests for get_markerobj
71 foreach my $clone ($map->each_cloneid) {
77 # add tests for get_cloneobj
80 foreach my $contig ($map->each_contigid) {
86 # add tests for get_contigobj