def template_new_rxn(output):
    """
    Generate template file used as input of rxn_creator function

    Parameters
    ----------
    output: str
        path for the template new_rxn to create
    """
    with open(output, 'w') as f:
        line = '\t'.join(['reaction_id', 'my_rxn']) + '\n'
        f.write(line)
        line = '\t'.join(['comment', 'reaction added for X reason']) + '\n'
        f.write(line)
        line = '\t'.join(['reversible', 'false']) + '\n'
        f.write(line)
        line = '\t'.join(['linked_gene', '(gene_a or gene_b) and gene_c']
            ) + '\n'
        f.write(line)
        line = '\t'.join(['#reactant/product', '#stoichio:compound_id:compart']
            ) + '\n'
        f.write(line)
        line = '\t'.join(['reactant', '1.0:compound_a:c']) + '\n'
        f.write(line)
        line = '\t'.join(['reactant', '2.0:compound_b:c']) + '\n'
        f.write(line)
        line = '\t'.join(['product', '1.0:compound_c:c']) + '\n'
        f.write(line)
        f.write('\n')
        line = '\t'.join(['reaction_id', 'my_rxn_2']) + '\n'
        f.write(line)
        line = '\t'.join(['comment', 'reaction added for X reason']) + '\n'
        f.write(line)
        line = '\t'.join(['reversible', 'true']) + '\n'
        f.write(line)
        line = '\t'.join(['linked_gene', '']) + '\n'
        f.write(line)
        line = '\t'.join(['#reactant/product', '#stoichio:compound_id:compart']
            ) + '\n'
        f.write(line)
        line = '\t'.join(['reactant', '1.0:compound_a:c']) + '\n'
        f.write(line)
        line = '\t'.join(['reactant', '2.0:compound_d:c']) + '\n'
        f.write(line)
        line = '\t'.join(['product', '1.0:compound_c:c']) + '\n'
        f.write(line)
