Package Bio :: Package Restriction :: Module RanaConfig
[hide private]
[frames] | no frames]

Source Code for Module Bio.Restriction.RanaConfig

 1  # Copyright (C) 2004. Frederic Sohm. 
 2  # This code is part of the Biopython distribution and governed by its 
 3  # license.  Please see the LICENSE file that should have been included 
 4  # as part of this package. 
 5   
 6  """Configuration of the console. 
 7   
 8  Mainly used by PrintFormat.PrintFormat 
 9   
10   - ConsoleWidth : width of the console used default to 80. 
11                    should never be less than 60. 
12   - NameWidth    : space attributed to the name in PrintList method. 
13   - Indent       : Indent of the second line. 
14   - MaxSize      : Maximal size of the sequence (default=6: 
15                    -> 99 999 bp + 1 trailing ',' 
16                    people are unlikely to ask for restriction map of sequences 
17                    bigger than 100.000 bp. This is needed to determine the 
18                    space to be reserved for sites location. 
19   
20                     - MaxSize = 5  =>   9.999 bp 
21                     - MaxSize = 6  =>  99.999 bp 
22                     - MaxSize = 7  => 999.999 bp 
23   
24  Example:: 
25   
26      <------------ ConsoleWidth ---------------> 
27      <- NameWidth -> 
28      EcoRI         :   1, 45, 50, 300, 400, 650, 
29                            700, 1200, 2500. 
30                        <--> 
31                          Indent 
32   
33  """ 
34   
35   
36  ConsoleWidth = 80 
37  NameWidth = 10 
38  Indent = 4 
39  MaxSize = 6 
40   
41  # Proxies 
42  # 
43  # Enter here the address of your proxy if any. 
44  # If you don't use proxy use an empty string 
45  # 
46  # Example: 
47  # 
48  #  ftp_proxy       =   '' 
49  #                  -> no proxy 
50  # 
51  #  ftp_proxy       =   'http://www.somewhere.something:one_number' 
52  #                  -> www.somewhere.something is the address of the proxy. 
53  #                     one_number is the port number. 
54  ftp_proxy = '' 
55   
56  ############################################################################### 
57  #                   Rebase ftp location 
58  # 
59  #   Do not modify the addresses. 
60  # 
61  ftp_Rebase = 'ftp://ftp.neb.com/' 
62  ftp_emb_e = ftp_Rebase + 'pub/rebase/emboss_e.###' 
63  ftp_emb_s = ftp_Rebase + 'pub/rebase/emboss_s.###' 
64  ftp_emb_r = ftp_Rebase + 'pub/rebase/emboss_r.###' 
65  ############################################################################### 
66  #                   ftp rebase account. 
67  # 
68  #   In order to update the rebase files, Rana need to connect to the 
69  #   ftp server corresponding. 
70  # 
71  #   the general procedure for accessing a ftp server is generally to 
72  #   connect as anonymous user (rebase_name) and providing your e-mail address 
73  #   as password. 
74  # 
75  #   However, a password is not required (any more?) for connecting tho REBASE, 
76  #   so we don't send our e-mail 
77  # 
78  Rebase_name = 'anonymous' 
79