CGATcore Logfile Module¶
Logfile.py - logfile parsing¶
:Tags: Python
Purpose¶
Parse logfiles
Usage¶
Example::
python cgat_script_template.py --help
Type::
python cgat_script_template.py --help
for command line help.
Documentation¶
Code¶
RX_FINISH = re.compile('job finished in (\\S+) seconds at (.*) --\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(\\S+) -- (\\S+)')
module-attribute
¶
RX_JOB = re.compile('job started at (.*) on (\\S+) -- (\\S+)')
module-attribute
¶
RX_START = re.compile('output generated by (\\S+) (.*)')
module-attribute
¶
RuntimeInformation = collections.namedtuple('RuntimeInformation', 'script options jobid host has_finished start_date end_date wall utime stime cutime cstime')
module-attribute
¶
LogFileData
¶
Source code in cgatcore/logfile.py
mChildSys = 0
instance-attribute
¶
mChildUser = 0
instance-attribute
¶
mDivider = 1.0
class-attribute
instance-attribute
¶
mFormat = '%6.2f'
class-attribute
instance-attribute
¶
mNChunks = 0
instance-attribute
¶
mRegex = re.compile('# job finished in (\\d+) seconds at (.*) --\\s+([.\\d]+)\\s+([.\\d]+)\\s+([.\\d]+)\\s+([.\\d]+)')
class-attribute
instance-attribute
¶
mSys = 0
instance-attribute
¶
mUser = 0
instance-attribute
¶
mWall = 0
instance-attribute
¶
__add__(other)
¶
__getitem__(key)
¶
Source code in cgatcore/logfile.py
__init__()
¶
__str__()
¶
add(line)
¶
Source code in cgatcore/logfile.py
LogFileDataLines
¶
Bases: LogFileData
record lines.