@MainWrapper<EOL>def main(sample_id, assembly, min_size):
logger.info("<STR_LIT>")<EOL>f_open = open(assembly, "<STR_LIT>")<EOL>entry = (x[<NUM_LIT:1>] for x in groupby(f_open, lambda line: line[<NUM_LIT:0>] == "<STR_LIT:>>"))<EOL>success = <NUM_LIT:0><EOL>for header in entry:<EOL><INDENT>headerStr = header.__next__()[<NUM_LIT:1>:].strip()<EOL>seq = "<STR_LIT>".join(s.strip() for s in entry.__next__())<EOL>if len(seq) >= min_size:<EOL><INDENT>with open(sample_id + '<STR_LIT:_>' + headerStr.replace("<STR_LIT:U+0020>","<STR_LIT:_>").replace("<STR_LIT:=>","<STR_LIT:_>") + '<STR_LIT>', "<STR_LIT:w>") as output_file:<EOL><INDENT>output_file.write("<STR_LIT:>>" + sample_id + "<STR_LIT:_>" + headerStr.replace("<STR_LIT:U+0020>","<STR_LIT:_>").replace("<STR_LIT:=>","<STR_LIT:_>") + "<STR_LIT>" + seq + "<STR_LIT>")<EOL>success += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>f_open.close()<EOL>logger.info("<STR_LIT>".format(success))<EOL>
Main executor of the split_fasta template.

    Parameters
    ----------
    sample_id : str
        Sample Identification string.
    assembly : list
        Assembly file.
    min_size : int
        Minimum contig size.