5 open I75
, "<", "scaffold188SNP.16.gt";
6 open O
, ">", "scaffold188_linkage_map.svg";
16 my ($a1, $a2) = split /\//, $a[$_];
17 if (($a1 eq "N") and ($a2 eq "A")) {
19 } elsif (($a1 eq "0") and ($a2 eq "0")) {
21 } elsif (($a1 eq "1") and ($a2 eq "1")) {
24 push @b, "$a[2]$a[3]";
30 my ($a1, $a2) = split /\//, $a[$_];
31 if (($a1 eq "N") and ($a2 eq "A")) {
33 } elsif (($a1 eq "0") and ($a2 eq "0")) {
36 } elsif (($a1 eq "1") and ($a2 eq "1")) {
40 push @b, "$a[2]$a[3]";
54 print O
"<?xml version=\"1.0\"?>\n\n<svg xmlns=\"http://www.w3.org/2000/svg\">\n\n";
57 foreach my $a (@ra75) {
60 print O
"<text x=\"0\" y=\"$y\" font-family=\"Courier\" font-size=\"8\" fill=\"black\">${$a}[0]</text>\n";
61 print O
"<text x=\"70\" y=\"$y\" font-family=\"Courier\" font-size=\"8\" fill=\"black\">${$a}[1]</text>\n";
67 my $h = length ${$a}[$_];
72 if (${$a}[18] eq "equal") {
74 } elsif (${$a}[18] eq ${$a}[$_]) {
82 print O
"<rect x=\"$xr\" y=\"$yr\" width=\"30\" height=\"10\" fill=\"$color\" stroke-width=\"0.5\" stroke=\"black\"/>\n";
83 print O
"<text x=\"$xt\" y=\"$yt\" font-family=\"Courier\" font-size=\"8\" fill=\"black\">${$a}[$_]</text>\n";