bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.05.14.725168

Discriminative learning of substitution matrices and gap penalties for pairwise alignment of biological sequences

Abstract

Pairwise alignment scores are used to classify pairs of sequences in many areas of bioinformatics, including homology search, predicting interactions, or read mapping. The relative scores of different pairs strongly depend on the choice of a substitution matrix and gap penalties, but the existing approaches for the estimation of these parameters do not directly optimize them for the task of classification. In this work, we present DiscrimAlign, a statistical model for discriminative learning of substitution matrices and gap penalties from a dataset of positive and negative pairs of unaligned biological sequences. The model links the alignment score of a sequence pair with the associated binary label through a logistic function and learns the parameters by likelihood maximization. We analyze theoretical properties of the model, derive and implement a learning procedure, study its performance in simulated experiments, and apply it to predict microRNA-target interactions. We show that sequence alignment with discriminative substitution matrices and gap penalties predicts the interactions comparably to state-of-the-art neural network classifiers while being more interpretable. An implementation of the model and reproducibility workflows are available at https://github.com/BioGeMT/DiscrimAlign.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ciach, M. A., Zacharopoulou, E., Startek, M. P., Miasojedow, B., Alexiou, P.. 2026-05-18. Discriminative learning of substitution matrices and gap penalties for pairwise alignment of biological sequences. https://doi.org/10.64898/2026.05.14.725168

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Inferring cascade drivers of VEXAS syndrome by a causal machine learning tool CauNagi

VEXAS syndrome is an adult-onset severe autoinflammatory disease caused by somatic mutations in UBA1, yet the cascade mechanisms linking primitive hematopoietic abnormalities to mature myeloid dysfunctions remain largely unknown. Identifying master regulators of a progressive disease, a black-box process, from complex transcriptomic data also remains challenging. To address this challenge, we developed CauNagi, a computational framework for prioritizing cascade candidate regulators (CCRs). CauNagi integrates a causal representation learning module derived from CausCell with an iterative deep learning backbone adapted from UNAGI; in addition, CauNagi extends these two components with a unique downstream module for CCRs analysis designed to characterize regulatory propagation across hierarchical cellular states. Mechanistically, CauNagi iteratively integrates causal disentangled representation learning with (1) disease-stage cell-state trajectory reconstruction and (2) dynamic regulatory analysis. Benchmarking on single-cell transcriptomic datasets showed that CauNagi preserved cell-type structure in idiopathic pulmonary fibrosis (IPF) and enriched known acute myeloid leukemia(AML)-associated genes among its top-ranked global regulators. When applied to VEXAS syndrome, CauNagi readily revealed inflammatory responses, endoplasmic reticulum stress, and myeloid bias, consistent with the disease features. Furthermore, the CCRs analysis module of CauNagi assisted us in identifying 36 causal drivers, with SPI1, NFKB1, STAT3, and FOS prioritized as high-confidence regulatory hubs linking aberrant myeloid differentiation and inflammatory programs. These findings were further supported by an independent single-cell transcriptomic dataset from a murine VEXAS model. Overall, CauNagi provides a computationally efficient and systematic framework for identifying candidate causal regulators. Beyond hematopoietic diseases, CauNagi may also be applicable to other progressive disorders for which multistage single-cell transcriptomic datasets are available. CauNagi is available at https://github.com/steamed-stuffed-bun/CauNagi.

bioinformatics↗

Inferential boundaries of age prediction: why prediction does not establish biological age measurement

Chronological-age clocks reconstruct age from biological measurements, yet their outputs are interpreted as biological age, gaps as ageing acceleration and intervention-associated decreases as rejuvenation. We show that age supervision identifies an age-task statistic, not a biological-age construct, and establish how this distinction changes biomarker construction and validation. Even at the population optimum, the same observable distribution and age-prediction performance admit incompatible biological-age interpretations. Resolving this ambiguity requires assumptions or evidence beyond the age task. Squared-error age loss penalizes within-age output dispersion without defining its biological direction. Given age and background, a gap re-expresses the compressed score; exact age recovery eliminates it even when heterogeneity remains in the measurements. Shared biological covariance permits genuine prognostic value without establishing construct identity. After allogeneic haematopoietic stem-cell transplantation, recipient-blood scores showed excess donor-lineage affiliation under a score-pairing null. In NHANES, age-trained scores improved held-out five-year mortality prediction beyond age and background, yet direct modelling of source measurements and mortality supervision at matched scalar capacity yielded further gains. The intended biological object must therefore guide study design, measurement selection and representation; validation must establish the claimed measurement relation rather than rely on age-prediction success alone.

bioinformatics↗

DisenTE: Sparse Pattern-Context Modeling for Interpretable Translation-Efficiency Matrix Completion

Partially observed object-by-context matrices arise across data-rich science, where dominant object effects can obscure smaller but informative context-dependent variation. We study this problem in a translation-efficiency atlas of 9,494 5' UTRs across 78 cellular and tissue contexts. We present DisenTE, a sequence-conditioned neural model that combines separate sequence and context branches with a sparse low-rank pattern-context channel. Each module pairs a sequence-derived activation with context-specific deployment weights, forming a dictionary whose sequence and context components can be examined separately. Under five-fold within-panel entry masking, DisenTE achieves a UTR-centered residual Spearman correlation of 0.641 +/- 0.005, compared with 0.304 +/- 0.003 for the strongest reference model. The learned dictionary retains 11 of 20 candidate modules. CTM 6 has the largest overlap with an external TOP set and a cap-proximal pyrimidine pattern; CTMs 5 and 7 also overlap the set but have purine-containing consensuses. The evidence supports CTM 6 as a TOP sequence anchor and CTMs 5 and 7 as TOP-set-associated factors. On this dataset, DisenTE improves completion over the evaluated references and provides module-level summaries of its fitted context-dependent variation.

bioinformatics↗