NxRepair is a python module that automatically detects large structural errors in de novo assemblies using Nextera mate pair reads. The decector will break a contig at the site of an identified misassembly and will generate a new fasta file containing both the corrected contigs and the correct, unaffected contigs.
https://nxrepair.readthedocs.io/en/latest/tutorial.html
nxrepair aligned_matepairs.bam assemblyfasta.fasta error_locations.csv new_fasta.fasta