2019-09-22 18:52:05 +02:00
|
|
|
#!/usr/local/bin/python3.5
|
2016-03-08 16:06:00 +01:00
|
|
|
'''
|
2019-09-22 18:52:05 +02:00
|
|
|
obi -- OBITools3
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2019-09-22 18:52:05 +02:00
|
|
|
obi is a package for the management of analyses and data in DNA metabarcoding
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2019-09-22 18:52:05 +02:00
|
|
|
@author: Celine Mercier
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2019-09-22 18:52:05 +02:00
|
|
|
@license: CeCILL-V2
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2019-09-22 18:52:05 +02:00
|
|
|
@contact: celine.mercier@metabarcoding.org
|
2016-03-08 16:06:00 +01:00
|
|
|
'''
|
|
|
|
|
|
|
|
|
2019-09-22 18:52:05 +02:00
|
|
|
default_config = { 'software' : "The OBITools 3",
|
2016-03-28 15:05:02 +02:00
|
|
|
'log' : False,
|
|
|
|
'loglevel' : 'INFO',
|
2017-07-25 13:07:03 +02:00
|
|
|
'inputURI' : None,
|
2017-07-28 12:41:28 +02:00
|
|
|
'outputURI' : None,
|
2016-09-30 17:48:53 +02:00
|
|
|
'defaultdms' : None,
|
|
|
|
'inputview' : None,
|
2017-07-25 13:07:03 +02:00
|
|
|
'outputview' : None,
|
|
|
|
'skip' : 0,
|
|
|
|
'only' : None,
|
2017-07-27 16:03:47 +02:00
|
|
|
'fileformat' : None,
|
2017-07-25 13:07:03 +02:00
|
|
|
'skiperror' : True,
|
2017-07-27 16:03:47 +02:00
|
|
|
'qualityformat' : b'sanger',
|
2018-03-12 18:10:43 +01:00
|
|
|
'offset' : -1,
|
2017-07-27 16:03:47 +02:00
|
|
|
'noquality' : False,
|
|
|
|
'seqtype' : b'nuc',
|
|
|
|
"header" : False,
|
|
|
|
"sep" : None,
|
|
|
|
"quote" : [b"'",b'"'],
|
|
|
|
"dec" : b".",
|
|
|
|
"nastring" : b"NA",
|
|
|
|
"stripwhite" : True,
|
|
|
|
"blanklineskip" : True,
|
2017-07-28 16:33:19 +02:00
|
|
|
"commentchar" : b"#",
|
|
|
|
"nocreatedms" : False
|
2016-03-28 15:05:02 +02:00
|
|
|
}
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
root_config_name='obi'
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
from obitools3.apps.config import getConfiguration # @UnresolvedImport
|
2016-03-08 16:06:00 +01:00
|
|
|
from obitools3.version import version
|
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
__all__ = []
|
2016-03-08 16:06:00 +01:00
|
|
|
__version__ = version
|
2019-09-22 18:52:05 +02:00
|
|
|
__date__ = '2019-09-22'
|
|
|
|
__updated__ = '2019-09-22'
|
2016-03-08 16:06:00 +01:00
|
|
|
|
|
|
|
DEBUG = 1
|
|
|
|
TESTRUN = 0
|
|
|
|
PROFILE = 0
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ =="__main__":
|
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
config = getConfiguration(root_config_name,
|
|
|
|
default_config)
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
config[root_config_name]['module'].run(config)
|
2016-03-08 16:06:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|