Back to index

python-biopython  1.60
rebase_update.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 #      Restriction Analysis Libraries.
00004 #      Copyright (C) 2004. Frederic Sohm.
00005 #
00006 # This code is part of the Biopython distribution and governed by its
00007 # license.  Please see the LICENSE file that should have been included
00008 # as part of this package.
00009 
00010 import sys
00011 import optparse
00012 from Bio.Restriction._Update.Update import *
00013 
00014         
00015 if __name__ == '__main__' :
00016     parser = optparse.OptionParser()
00017     add = parser.add_option
00018 
00019     add('-m', '--e-mail',
00020         action  = "store",
00021         dest    = 'rebase_password',
00022         default = '',
00023         help    = "set the e-mail address to be used as password for the"
00024         "anonymous ftp connection to Rebase.")
00025     add('-p', '--proxy',
00026         action  = "store",
00027         dest    = 'ftp_proxy',
00028         default = '',
00029         help    = "set the proxy to be used by the ftp connection.")
00030     
00031     (option, args) = parser.parse_args()
00032     
00033     Getfiles = RebaseUpdate(option.rebase_password, option.ftp_proxy)
00034     Getfiles.openRebase()
00035     Getfiles.getfiles()
00036     Getfiles.close()
00037     sys.exit()