[Bio] / FigTutorial / connect_map_to_genes.pl Repository:
ViewVC logotype

Annotation of /FigTutorial/connect_map_to_genes.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : overbeek 1.1 use FIG;
2 :     my $fig = new FIG;
3 :     use Sim;
4 :    
5 :     use strict;
6 :     my($usage,$map,$genome,$name,$role,$peg,$func,$expanded_role);
7 :    
8 :     $usage = "usage: connect_map_to_genes Map Genome";
9 :    
10 :     (
11 :     ($map = shift @ARGV) &&
12 :     ($genome = shift @ARGV)
13 :     )
14 :     || die $usage;
15 :    
16 :     $name = $fig->map_name($map);
17 :     print "$map\t$name\n";
18 : olson 1.2 foreach $role ($fig->map_to_ecs($map))
19 : overbeek 1.1 {
20 :     print " $role\n";
21 :     foreach $peg ($fig->seqs_with_role($role,"master",$genome))
22 :     {
23 :     $func = $fig->function_of($peg);
24 :     print " $peg\t$func\n";
25 :     }
26 :     }

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3