[Bio] / FigTutorial / connect_subsystem_to_genes_the_right_way.py Repository:
ViewVC logotype

Annotation of /FigTutorial/connect_subsystem_to_genes_the_right_way.py

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : disz 1.1 from FigKernelPackages import FIG2
2 :     import sys
3 :    
4 :     fig = FIG2.FIG()
5 :    
6 :     def die(msg):
7 :     print msg
8 :     sys.exit(0)
9 :    
10 :     if len(sys.argv) != 3:
11 :     die("usage: connect_subsystem_to_genes_the_right_way Subsystem Genome")
12 :    
13 :     subsystem = sys.argv[1]
14 :     genome = sys.argv[2]
15 :    
16 :     print subsystem
17 :     roles = fig.subsystem_to_roles(subsystem)
18 :    
19 :     for role in roles:
20 :     print role
21 :     pegs = fig.pegs_in_subsystem_cell(subsystem, genome, role)
22 :     for peg in pegs:
23 :     func = fig.function_of(peg)
24 :     print " %s\t%s" % (peg, func[0][1])

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3