{'fraction_non_alphanumeric': 0.0182370820668693, 'fraction_numerical': 0.0, 'mean_word_length': 5.210691823899371, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
RegScaf: a regression approach to scaffolding

MOTIVATION
Crucial to the correctness of a genome assembly is the accuracy of the underlying scaffolds that specify the orders and orientations of contigs together with the gap distances between contigs. The current methods construct scaffolds based on the alignments of "linking" reads against contigs. We found that some "optimal" alignments are mistaken due to factors such as the contig boundary effect, particularly in the presence of repeats. Occasionally the incorrect alignments can even overwhelm the correct ones. The detection of the incorrect linking information is challenging in any existing methods.


RESULTS
In this study, we present a novel scaffolding method RegScaf. It first examines the distribution of distances between contigs from read alignment by the kernel density. When multiple modes are shown in a density, orientation-supported links are grouped into clusters, each of which defines a linking distance corresponding to a mode. The linear model parameterizes contigs by their positions on the genome; then each linking distance between a pair of contigs is taken as an observation on the difference of their positions. The parameters are estimated by minimizing a global loss function, which is a version of trimmed sum of squares. The least trimmed squares estimate has such a high breakdown value that it can automatically remove the mistaken linking distances. The results on both synthetic and real datasets demonstrate that RegScaf outperforms some popular scaffolders, especially in the accuracy of gap estimates by substantially reducing extremely abnormal errors. Its strength in resolving repeat regions is exemplied by a real case. Its adaptability to large genomes and TGS long reads is validated as well.


AVAILABILITY
RegScaf is publicly available at https://github.com/lemontealala/RegScaf.git.


SUPPLEMENTARY INFORMATION
Supplementary data are available at Bioinformatics online.