Move and rename the obi.py script
This commit is contained in:
71
scripts/obi
Executable file
71
scripts/obi
Executable file
@ -0,0 +1,71 @@
|
||||
#!/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
|
||||
'''
|
||||
|
||||
|
||||
default_config = { 'software' : "The OBITools",
|
||||
'log' : False,
|
||||
'loglevel' : 'INFO',
|
||||
'progress' : True,
|
||||
'inputURI' : None,
|
||||
'outputURI' : None,
|
||||
'defaultdms' : None,
|
||||
'inputview' : None,
|
||||
'outputview' : None,
|
||||
'skip' : 0,
|
||||
'only' : None,
|
||||
'fileformat' : None,
|
||||
'skiperror' : True,
|
||||
'qualityformat' : b'sanger',
|
||||
'offset' : -1,
|
||||
'noquality' : False,
|
||||
'seqtype' : b'nuc',
|
||||
"header" : False,
|
||||
"sep" : None,
|
||||
"quote" : [b"'",b'"'],
|
||||
"dec" : b".",
|
||||
"nastring" : b"NA",
|
||||
"stripwhite" : True,
|
||||
"blanklineskip" : True,
|
||||
"commentchar" : b"#",
|
||||
"nocreatedms" : False
|
||||
}
|
||||
|
||||
root_config_name='obi'
|
||||
|
||||
from obitools3.apps.config import getConfiguration # @UnresolvedImport
|
||||
from obitools3.version import version
|
||||
|
||||
__all__ = []
|
||||
__version__ = version
|
||||
__date__ = '2014-09-28'
|
||||
__updated__ = '2014-09-28'
|
||||
|
||||
DEBUG = 1
|
||||
TESTRUN = 0
|
||||
PROFILE = 0
|
||||
|
||||
|
||||
if __name__ =="__main__":
|
||||
|
||||
config = getConfiguration(root_config_name,
|
||||
default_config)
|
||||
|
||||
config[root_config_name]['module'].run(config)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user