obi 1.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/local/bin/python3.4
'''
obi -- shortdesc

obi is a description

It defines classes_and_methods

@author:     user_name

@copyright:  2014 organization_name. All rights reserved.

@license:    license

@contact:    user_email
@deffield    updated: Updated
'''


20 21 22
default_config = { 'software'       : "The OBITools",
                   'log'            : False,
                   'loglevel'       : 'INFO',
Celine Mercier committed
23
                   'progress'       : True,
Eric Coissac committed
24
                   'inputURI'       : None,
Eric Coissac committed
25
                   'outputURI'      : None,
26 27
                   'defaultdms'     : None,
                   'inputview'      : None,
Eric Coissac committed
28 29 30
                   'outputview'     : None,
                   'skip'           : 0,
                   'only'           : None,
31
                   'fileformat'     : None,
Eric Coissac committed
32
                   'skiperror'      : True,
33
                   'qualityformat'  : b'sanger',
34
                   'offset'         : -1,
35 36 37 38 39 40 41 42 43
                   'noquality'      : False,
                   'seqtype'        : b'nuc',
                   "header"         : False,
                   "sep"            : None,
                   "quote"          : [b"'",b'"'],
                   "dec"            : b".",
                   "nastring"       : b"NA",
                   "stripwhite"     : True,
                   "blanklineskip"  : True,
44 45
                   "commentchar"    : b"#",
                   "nocreatedms"    : False
46
                  }
47

48
root_config_name='obi'
49

50
from obitools3.apps.config import getConfiguration     # @UnresolvedImport
51 52
from obitools3.version import version

53
__all__     = []
54
__version__ = version
55
__date__    = '2014-09-28'
56 57 58 59 60 61 62 63 64
__updated__ = '2014-09-28'

DEBUG = 1
TESTRUN = 0
PROFILE = 0


if __name__ =="__main__":
    
65 66
    config = getConfiguration(root_config_name,
                              default_config)    
67
                
68
    config[root_config_name]['module'].run(config)
69 70 71