An optimization approach for removing secondary haplotigs during diploid genome assembly and scaffolding.