[Bio] / FigKernelScripts / peg_to_subsystems.pl Repository:
ViewVC logotype

Annotation of /FigKernelScripts/peg_to_subsystems.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : overbeek 1.1 #
2 :     use FIG;
3 :     $fig = new FIG;
4 :    
5 :     # usage: peg_to_subsystems.pl < PEG > PEG-FUNC-SUBSYSTEM-ROLE
6 :    
7 :     while (defined($_ = <STDIN>))
8 :     {
9 :     if ($_ =~ /(fig\|\d+\.\d+\.peg\.\d+)$/)
10 :     {
11 :     $peg = $1;
12 :     $func = $fig->function_of($peg);
13 :     foreach $x ($fig->subsystems_for_peg($peg))
14 :     {
15 :     ($subsystem,$role) = @$x;
16 :     print "$peg\t$func\t$subsystem\t$role\n";
17 :     }
18 :     }
19 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3