Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.07.26.740842

NEXCISION: exact, validated, and scalable excision of genomic regions from phylogenomic NEXUS matrices

Abstract

Coordinate-based exclusion of genomic regions is routine in microbial phylogenomics, yet the editing step often relies on ad hoc scripts or manual alignment manipulation. This simple but high-consequence task can alter the character matrix, retain unwanted signal, or leave invalid NEXUS dimensions. This study presents NEXCISION, a dependency-free Python command-line tool for exact removal of coordinate-labelled rows from transposed NEXUS matrices. NEXCISION uses 1-based inclusive intervals, preserves retained rows and surrounding NEXUS content, updates matrix dimensions, reports interval-specific removal counts, and can generate deterministic provenance reports with SHA-256 checksums. Correctness was evaluated using three genuine SPANDx-derived matrices, an independent oracle, 17 correctness and preservation cases, 26 malformed-input challenges, 1,000 synthetic matrices containing 304,000 site rows, nine property-based invariants across 1,800 examples, and 12 deliberately faulted implementations. All expected rows were removed, retained rows and state strings were preserved, malformed inputs failed safely, and all deliberate faults were detected. In 105 measured scalability runs, NEXCISION remained correct and deterministic across 21 configurations. Runtime scaled near-linearly from [~]100 MB to 5 GB, processing a 4.83 GiB matrix in [~]24.2 seconds on one pinned logical central processing unit. Up to 100,000 intervals added modest runtime, while peak memory increased by [~]4.85 GiB per GiB of input. NEXCISION makes a fragile bespoke editing step exact, testable, and provenance-rich for microbial phylogenomics. Graphical abstract O_FIG O_LINKSMALLFIG WIDTH=200 HEIGHT=110 SRC="FIGDIR/small/740842v1_ufig1.gif" ALT="Figure 1"> View larger version (52K): org.highwire.dtl.DTLVardef@1035228org.highwire.dtl.DTLVardef@106c1a3org.highwire.dtl.DTLVardef@92dcddorg.highwire.dtl.DTLVardef@1e25457_HPS_FORMAT_FIGEXP M_FIG C_FIG Impact statementRemoving defined genomic regions from a phylogenomic matrix seems simple, but errors can alter alignments, retain unwanted signal, or leave invalid NEXUS dimensions. NEXCISION replaces manual or bespoke editing with a focused command-line tool that removes only intended coordinate-labelled rows, preserves all other content, and records the operation. It is a trustworthy bridge between region detection and downstream phylogenetic inference for microbial genomic epidemiology, outbreak analysis, recombination masking, mobile-element studies, and workflows that excise reference-defined sites from transposed NEXUS matrices. NEXCISION was tested against genuine files, an independent oracle, 1,000 synthetic matrices, generated edge cases, and deliberately faulted implementations. It runs locally as a dependency-free, single-process Python utility. On a computer with 16 GB random-access memory (RAM), [~]2 GB matrices are practical; the largest tested matrix was 5.2 GB and required [~]25 GB RAM. NEXCISION is compact, transparent, and supported by evidence for correctness, failure safety, and scalability. Data summaryNo new biological sequence data were generated. Supporting software, validation assets, benchmarks, analysis code, figure sources, and reproducibility instructions are available from: NEXCISION software repository: https://github.com/RhysWhite/nexcision NEXCISION benchmarking repository: https://github.com/RhysWhite/nexcision-benchmarking The evaluated software was NEXCISION v0.1.0 (MIT licence; Python >=3.10). The benchmarking repository includes the wheel checksum, deterministic data generator, manifests, independent oracle, compact results, summaries, and analysis scripts. The 1,000 synthetic matrices are reproducible from the version-controlled generator and manifest; the regenerated corpus has deterministic tree digest 9ed25d7e2dd4fee380f2f0f32ddcf653694715926905bd54179e7003e64f1c28. Three SPANDx-derived matrices were used only to confirm compatibility with real matrix syntax; no biological inference was made. Their metadata and checksums are recorded in the benchmarking repository. All data, code, and protocols needed to reproduce the deterministic and performance results are provided in the article, supplementary material, or linked repositories. Software versions, computational environments, deterministic controls, and immutable provenance identifiers are summarized in Table S6.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

White, R. T.. 2026-07-29. NEXCISION: exact, validated, and scalable excision of genomic regions from phylogenomic NEXUS matrices. https://doi.org/10.64898/2026.07.26.740842

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

KEEP EXPLORING

Related preprints

Targeted finetuning enables co-folding models to learn ligand-induced protein conformational states

Advances in protein structure prediction have enabled all-atom protein-ligand co-folding models that predict bound conformations directly from sequence and small-molecule structure. However, these models often fail to generalize to novel binding sites or alternative protein conformational states, limiting their utility for chemical biology and drug discovery. Here we show this limitation reflects training data bias rather than architectural constraints and can be overcome through targeted finetuning. Using ten previously unseen X-ray structures of Werner (WRN) helicase from a drug discovery program, we finetune Boltz-1 to learn both an allosteric binding site and a large conformational change locking the enzyme in an inactive state, while preserving accuracy on the ATP-bound state. The finetuned model generalizes to different chemical series and transfers the conformational logic across RecQ-family helicases in a binding-site sequence-dependent manner. This approach provides a blueprint for adapting foundation models as new structural and mechanistic data emerge, enabling co-folding networks to capture ligand-induced conformational switches and binding poses absent from their training data but central to biological regulation and therapeutic intervention.

bioinformatics↗

Benchmarking single-cell foundation models for aging biology

Single cell foundation models (scFMs) provide representations of cellular states, but their utility across biological questions in aging research remains unclear. We established a benchmark of cellular representations for aging research, evaluating ten general-purpose scFMs, three aging-specific models and conventional methods across five biological questions using more than 2.5 million single cell transcriptomes. Using frozen pretrained representations, Geneformer performed best among scFMs for chronological age prediction and age pseudotime concordance, although 2,000 highly variable genes achieved higher mean performance. Several scFMs captured positive molecular age shifts across three disease contexts, consistent with reported aging-associated changes. SCimilarity performed well for rare cellular state identification across out-of-distribution datasets, exceeding aging specific models and conventional baselines. At the gene level, scGPT showed the highest recovery of reference TF target interactions, including aging-related regulatory hubs. Overall, scFMs supported diverse aging analyses, but performance depended on the biological question, highlighting their utility for rare cellular state identification and regulatory analysis.

bioinformatics↗

CryoMV: Structure-Prior-Guided Modeling and Real-Particle Validation of Continuous Conformational Transitions in Cryo-EM

Continuous protein conformations are essential for understanding fundamental biological processes and supporting drug discovery. Although cryo-EM can resolve individual states at high resolution, recovering continuous heterogeneity from 2D particle images remains challenging. High noise, motion blur, and limited structural priors make it difficult to accurately generate and validate high-resolution continuous conformations using raw particle data. Here, we introduce cryoMV, a framework that integrates structure-prior-guided modeling with real-particle validation for continuous conformational transitions. CryoMV uses reference density maps to establish structural anchors and motion priors, models candidate transition paths between selected conformations, and transfers the learned representation to raw 2D cryo-EM particle images. Each candidate conformation is subsequently evaluated using the estimated particle poses and contrast transfer functions. Supported conformations are reconstructed through raw particle back-projection and assessed using canonical half-maps and Fourier shell correlation. On EMPIAR-10516 and EMPIAR-10345, cryoMV achieves excellent performance in terms of robustness, verifiability, and reconstruction resolution. By incorporating structure-prior modeling and evidence from the raw particles, cryoMV offers an explicit mechanism for assessing whether generated conformations are supported by experimental data and provides a practical approach to reducing model-induced artifacts in continuous cryo-EM heterogeneity analysis.

bioinformatics↗