def _write_reads(reads, prefix):
out_ma = prefix + "<STR_LIT>"<EOL>out_fasta = prefix + "<STR_LIT>"<EOL>out_real = prefix + "<STR_LIT>"<EOL>with open(out_ma, '<STR_LIT:w>') as ma_handle:<EOL><INDENT>print("<STR_LIT>", file=ma_handle, end="<STR_LIT>")<EOL>with open(out_fasta, '<STR_LIT:w>') as fa_handle:<EOL><INDENT>with open(out_real, '<STR_LIT:w>') as read_handle:<EOL><INDENT>for idx, r in enumerate(reads):<EOL><INDENT>info = r.split("<STR_LIT:_>")<EOL>print("<STR_LIT>" % (idx, reads[r][<NUM_LIT:0>], reads[r][<NUM_LIT:1>]), file=ma_handle, end="<STR_LIT>")<EOL>print("<STR_LIT>" % (idx, reads[r][<NUM_LIT:0>]), file=fa_handle, end="<STR_LIT>")<EOL>print("<STR_LIT>" % (idx, r, reads[r][<NUM_LIT:0>], reads[r][<NUM_LIT:1>], info[<NUM_LIT:1>], info[<NUM_LIT:2>], info[<NUM_LIT:3>]), file=read_handle, end="<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Write fasta file, ma file and real position