[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.2 - (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 : overbeek 1.2 $curator = $fig->subsystem_curator($subsystem);
17 :     $curator =~ s/^master://;
18 :     print "$peg\t$func\t$subsystem\t$role\t$curator\n";
19 : overbeek 1.1 }
20 :     }
21 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3