@MainWrapper<EOL>def main(sample_id, bowite_log):
logger.info("<STR_LIT>")<EOL>warnings = []<EOL>fails = "<STR_LIT>"<EOL>bowtie_info = Bowtie(sample_id, bowite_log)<EOL>print(bowtie_info.overall_rate)<EOL>with open("<STR_LIT>", "<STR_LIT:w>") as json_report:<EOL><INDENT>json_dic = {<EOL>"<STR_LIT>": [{<EOL>"<STR_LIT>": sample_id,<EOL>"<STR_LIT:data>": [<EOL>{"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": int(bowtie_info.n_reads),<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False},<EOL>{"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": int(bowtie_info.align_0x),<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False},<EOL>{"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": int(bowtie_info.align_1x),<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False},<EOL>{"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": int(bowtie_info.align_mt1x),<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False},<EOL>{"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": float(bowtie_info.overall_rate),<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False}<EOL>]<EOL>}],<EOL>}<EOL>if warnings:<EOL><INDENT>json_dic["<STR_LIT>"] = [{<EOL>"<STR_LIT>": sample_id,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": warnings<EOL>}]<EOL><DEDENT>if fails:<EOL><INDENT>json_dic["<STR_LIT>"] = [{<EOL>"<STR_LIT>": sample_id,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:value>": [fails]<EOL>}]<EOL><DEDENT>json_report.write(json.dumps(json_dic, separators=("<STR_LIT:U+002C>", "<STR_LIT::>")))<EOL><DEDENT>with open("<STR_LIT>", "<STR_LIT:w>") as status_fh:<EOL><INDENT>status_fh.write("<STR_LIT>")<EOL><DEDENT>
Main executor of the process_mapping template.

    Parameters
    ----------
    sample_id : str
        Sample Identification string.
    boetie_log: str
        Path to the log file generated by bowtie.