rename into a temp file, then point $assembled_contig_file there.