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

Annotation of /FigTutorial/seq_utils.py

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : disz 1.1 from FigKernelPackages import FIG
2 :     import sys
3 :    
4 :     fig = FIG.FIG()
5 :    
6 :     def die(msg):
7 :     print msg
8 :     sys.exit(0)
9 :    
10 :     if len(sys.argv) != 3:
11 :     die("usage: seq_utils Genome Location")
12 :    
13 :     genome = sys.argv[1]
14 :     loc = sys.argv[2]
15 :    
16 :     seq = fig.dna_seq(genome, loc)
17 :    
18 :     if seq:
19 :     seqR = fig.reverse_comp(seq);
20 :    
21 :     tran = fig.translate(seq);
22 :     tranR = fig.translate(seqR);
23 :    
24 :     fig.display_id_and_seq("plus_strand",seq);
25 :     #fig.display_id_and_seq("plus_strand_translated",\$tran,\*STDERR);
26 :    
27 :     fig.display_id_and_seq("minus_strand",seqR);
28 :     #fig.display_id_and_seq("minus_strand_translated",\$tranR,\*STDERR);

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3