Purges any retained haplotypes using minimap2 to make the input assembly to itself and the reads to the assembly followed by purge-dups to identify and remove any error, repeat or retained haplotype contigs.