4 use lib
'/nas/RD_09C/resequencing/soft/lib';
5 #use GalaxyXS::ChromByte;
6 use Data
::Dump
qw(ddx);
9 print "perl $0 <group_file> <tmap output> <Out_file>\n";
13 my ($in,$mapf,$outf)=@ARGV;
14 my (%MarkerGroup,@MarkerOrder,%MarkerCM);
16 open I
,'<',$in or die $!;
22 #print join("|",@dat),"\n";
23 my ($id,$name)=split /=/,shift @dat,2;
24 #print "$id\t$name\n";
25 die "[x]ID confict found !" if exists $MarkerGroup{$id};
26 $MarkerGroup{$id}=[$name,\
@dat];
32 open T
,'<',$mapf or die $!;
34 die "[x]Not a Tmap output file !" unless /^name/;
35 open O
,'>',$outf or die $!;
37 my ($id,$cm)=split /\s+/; # the file is TSV, but, ID comes with tailing 20h ...
38 my ($name,$datref)=@
{$MarkerGroup{$id}};
39 #push @MarkerOrder,$id;
49 ./groupreader
.pl deChr12
.group deChr12
.imo deChr12
.cm
50 cat
../chrorder | while read a;do ./groupreader
.pl de
$a.group de
$a.imo de
$a.cm
;done
&
52 http
://www
.maizemap
.org
/iMapDB/Overview
/Anchoring_Rules
.html
54 Rules developed to help make unambiguous contig
: genetic
map assignments
57 One contig should have one position on the integrated
map.
60 Contig
:marker associations made by hybridization of a probe to a single BAC
in the contig will be filtered out before anchoring
. Contig
:marker associations made by detection of a single BAC by PCR
-based analysis of the BAC DNA pools will be accepted
if no other conflicts exist
for that contig
.
63 If two linked markers
* hit one shared contig
, the contig will be anchored to the position of those markers
, even
if the markers also hit other contigs
.
66 Multiple contigs can be assigned to a single position
if they are detected by probes corresponding to closely linked markers
.
69 If a marker detects multiple BACs that are uniquely assembled
in one contig
, and no conflicts exist
for that contig
, the contig can be assigned to the locus corresponding to that marker
.
72 *. The closely linked markers are those that are within
5 marker
's positions or within 10 cM with their neighbors on the genetic map meanwhile the markers with same coordinates are considered as same position.