7 open PACK
, $ARGV[1] or die;
13 my ($fid, $pname) = split /\t/;
14 if ($feature_packages{$fid}) {
15 $feature_packages{$fid} .= ", $pname";
17 $feature_packages{$fid} = $pname;
23 open FEAT
, $ARGV[2] or die;
29 my ($feature_id, $feature_name, $subfeature_id, $subfeature_name, $is_supported, $comments) = split /\t/;
31 $is_supported eq $yesno || next;
33 $feature_name =~ s/</</g;
34 $feature_name =~ s/>/>/g;
35 $subfeature_name =~ s/</</g;
36 $subfeature_name =~ s/>/>/g;
41 print " <entry>$feature_id-$subfeature_id</entry>\n";
43 print " <entry>$feature_id</entry>\n";
45 print " <entry>" . $feature_packages{$feature_id} . "</entry>\n";
47 print " <entry>$subfeature_name</entry>\n";
49 print " <entry>$feature_name</entry>\n";
51 print " <entry>$comments</entry>\n";