4 use lib
'/nas/RD_09C/resequencing/soft/lib';
5 #use GalaxyXS::ChromByte;
6 #use Data::Dump qw(ddx);
9 print "perl $0 <markerpos file>\n";
15 sub splitMarkerid
($) {
17 my ($mChr,$mPos,$mSiderLen)=split /[_m]/,$MarkerID,3;
18 return [$mChr,$mPos,$mSiderLen];
21 open I
,'<',$file or die "Error:[$file] $!\n";
22 open O
,'>',$file.'.f' or die "Error:[$file.f] $!\n";
28 my ($Qid,$mcM,$Sid,$pos,$strand,$Pidentity,$E,$BTOP)=split /\t/;
30 if ($Sid =~ /^chr/i) { # needed ? Well, it is what we supposed previously ...
31 my ($mChr,$mPos,$mSiderLen)=@
{&splitMarkerid
($Qid)};
32 next if $mChr ne $Sid;
34 print O
join("\t",$Qid,$mcM,$Sid,$pos,$strand,$Pidentity,$E,$BTOP),"\n";
40 find
./markerpos/ -name
'*.pos'|xargs
-n1
./markerposfilter
.pl