<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article article-type="brief-report" dtd-version="1.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Bioinform.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Bioinformatics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Bioinform.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2673-7647</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1842658</article-id>
<article-id pub-id-type="doi">10.3389/fbinf.2026.1842658</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Brief Research Report</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>ONYX: an alignment-free biological sex inference from high-throughput sequencing data</article-title>
<alt-title alt-title-type="left-running-head">Ishiya</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fbinf.2026.1842658">10.3389/fbinf.2026.1842658</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Ishiya</surname>
<given-names>Koji</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1517052"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal Analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
</contrib-group>
<aff id="aff1">
<label>1</label>
<institution>Sapiens Life Sciences, Evolution and Medicine Research Center, Kanazawa University</institution>, <city>Kanazawa</city>, <state>Ishikawa</state>, <country country="JP">Japan</country>
</aff>
<aff id="aff2">
<label>2</label>
<institution>Institute for the Study of Ancient Civilizations and Cultural Resources, Kanazawa University</institution>, <city>Kanazawa</city>, <state>Ishikawa</state>, <country country="JP">Japan</country>
</aff>
<author-notes>
<corresp id="c001">
<label>&#x2a;</label>Correspondence: Koji Ishiya, <email xlink:href="mailto:ishiya@staff.kanazawa-u.ac.jp">ishiya@staff.kanazawa-u.ac.jp</email>
</corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-05-28">
<day>28</day>
<month>05</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>6</volume>
<elocation-id>1842658</elocation-id>
<history>
<date date-type="received">
<day>30</day>
<month>03</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>01</day>
<month>05</month>
<year>2026</year>
</date>
<date date-type="accepted">
<day>07</day>
<month>05</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Ishiya.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Ishiya</copyright-holder>
<license>
<ali:license_ref start_date="2026-05-28">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<p>Biological sex inference from genomic data is important in population genomics, conservation biology, and forensic science, yet many existing approaches depend on sequence alignment or species-specific markers and may therefore be limited in their transferability across sex chromosome systems. ONYX is an alignment-free framework for biological sex inference based on sex chromosome-derived k-mer collections. It constructs homogametic- and heterogametic-specific k-mer collections from reference genomes and infers chromosomal sex configuration directly from sequencing reads using a unified heterogametic signal score, <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. The framework was evaluated using human whole-genome sequencing data representing an XY system and chicken whole-genome sequencing data representing a ZW system. In both species, <inline-formula id="inf2">
<mml:math id="m2">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> clearly distinguished heterogametic from homogametic individuals. Importantly, the same score interpretation was preserved across both systems, with elevated <inline-formula id="inf3">
<mml:math id="m3">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values consistently reflecting heterogametic chromosome content despite differences in genome structure and the biological interpretation of sex. This pattern was also observed in an additional validation using Atlantic cod which has limited heterogametic-specific sequences, further supporting the applicability of ONYX as a unified framework applicable across distinct sex chromosome systems. Its alignment-free design provides a simple and computationally efficient approach for scalable and time-sensitive genomic analysis. ONYX is freely available at <ext-link ext-link-type="uri" xlink:href="https://github.com/omics-tools/onyx">https://github.com/omics-tools/onyx</ext-link>.</p>
</abstract>
<kwd-group>
<kwd>alignment-free</kwd>
<kwd>biological sex inference</kwd>
<kwd>cross-species applicability</kwd>
<kwd>high-throughput sequencing</kwd>
<kwd>k-mer</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. This work was supported by JSPS KAKENHI Grant Number 19K16246, 20H05822, 25H00487, and 26K02108, and JSPS Program for Forming Japan&#x2019;s Peak Research Universities(J-PEAKS) Grant Number JPJS00420230006.</funding-statement>
</funding-group>
<counts>
<fig-count count="4"/>
<table-count count="0"/>
<equation-count count="8"/>
<ref-count count="17"/>
<page-count count="00"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Genomic Analysis</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<label>1</label>
<title>Introduction</title>
<p>Biological sex inference from genomic data is a fundamental task in population genomics, conservation biology, and forensic science. Accurate determination of biological sex is essential for a wide range of applications, including analyses of sex-biased population structure (<xref ref-type="bibr" rid="B9">Prugnolle and de Meeus, 2002</xref>), wildlife monitoring (<xref ref-type="bibr" rid="B11">Robertson and Gemmell, 2006</xref>; <xref ref-type="bibr" rid="B14">Stovall et al., 2018</xref>; <xref ref-type="bibr" rid="B16">von Thaden et al., 2020</xref>), and individual identification in forensic investigations (<xref ref-type="bibr" rid="B7">Laverde, 2013</xref>). This task becomes particularly important when phenotypic information is unavailable or unreliable, such as degraded samples (<xref ref-type="bibr" rid="B1">&#xc1;lvarez-Sandoval et al., 2014</xref>; <xref ref-type="bibr" rid="B8">Masuyama et al., 2017</xref>), or ancient remains (<xref ref-type="bibr" rid="B13">Skoglund et al., 2013</xref>; <xref ref-type="bibr" rid="B2">Buonasera et al., 2020</xref>). In such contexts, genomic data may provide the only practical basis for sex inference.</p>
<p>Existing widely used approaches for biological sex inference typically rely on either predefined sex-specific markers (<xref ref-type="bibr" rid="B15">Sullivan et al., 1993</xref>), sequence alignment-based analyses (<xref ref-type="bibr" rid="B13">Skoglund et al., 2013</xref>), or genotyping-based identification of sex-specific loci (<xref ref-type="bibr" rid="B14">Stovall et al., 2018</xref>). Especially, marker-based approaches, such as those targeting differences in the amelogenin gene in humans, have been widely used but may fail in degraded samples (<xref ref-type="bibr" rid="B1">&#xc1;lvarez-Sandoval et al., 2014</xref>) and are not always transferable across species with different sex chromosome systems. Sequencing-based sex identification approaches can be affected by ambiguous read mapping across homologous regions on sex chromosomes, which can introduce biases in downstream analyses such as depth estimation and variant calling (<xref ref-type="bibr" rid="B17">Webster et al., 2019</xref>). In addition, their previous classification approaches often do not generalize well across sex determination systems. The classification approach for XY systems is not always straightforwardly transferable to ZW systems, because the expected chromosomal signal and the biological interpretation of sex differ between these systems. This limitation is particularly important for comparative or cross-species studies, where a single conceptual framework applicable across taxa would be advantageous. Despite the importance of sex inference in genomic analyses, there is currently no unified computational framework that can be consistently applied across diverse sex chromosome systems and sequencing conditions.</p>
<p>To address these limitations, ONYX (&#x254;&#x301;niks), an alignment-free method for biological sex inference based on k-mer statistics, is developed. ONYX constructs sex-specific k-mer sets using a set-difference formulation derived from reference genome sequences and estimates relative signal from sequencing reads without requiring sequence alignment or coverage normalization. This design enables a simple, scalable, and computationally efficient approach to sex inference in species with heteromorphic sex chromosomes. A key feature of ONYX is its applicability across multiple sex chromosome systems, as the same formulation can be applied to both XY and ZW systems, allowing consistent interpretation without system-specific modifications. In addition, the method operates directly on sequencing or alignment reads, making it suitable for multiple sequencing platforms and file formats.</p>
<p>In this study, the performance of ONYX is evaluated using human (XY system) and chicken (ZW system) datasets to demonstrate its system-independent behavior. The results show that ONYX achieves accurate and robust separation of biological sex across species using a unified framework. Collectively, this study presents the following contributions: (1) a novel alignment-free approach for biological sex inference based on k-mer statistics; (2) a bioinformatics tool for the automated construction of customizable sex-specific k-mer databases and classification of samples based on sequencing data; and (3) cross-species validation demonstrating robust applicability across distinct sex determination systems, including XY and ZW.</p>
</sec>
<sec sec-type="methods" id="s2">
<label>2</label>
<title>Methods</title>
<sec id="s2-1">
<label>2.1</label>
<title>ONYX framework and sex-specific k-mer collections</title>
<p>ONYX is an alignment-free method for inferring biological sex based on k-mer signals derived from reference genome sequences (<xref ref-type="fig" rid="F1">Figure 1</xref>). The method consists of two main components: (i) construction of sex chromosome-derived k-mer collections from reference genomes (ONYX build command) and (ii) inference of chromosomal configuration based on these k-mer signals (ONYX classify command). These correspond to the database construction and classification steps in the ONYX program (<ext-link ext-link-type="uri" xlink:href="https://github.com/omics-tools/onyx">https://github.com/omics-tools/onyx</ext-link>), respectively.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Overview of the ONYX framework. <bold>(a)</bold> Reference genome sequences provided to ONYX. <bold>(b)</bold> k-mers are generated for each chromosome, and sex chromosome-derived k-mers are recovered by subtracting k-mers derived from autosomes. <bold>(c)</bold> A sex chromosome database is constructed from unique, non-redundant sex-specific k-mers. <bold>(d)</bold> k-mers are detected from the sequence data provided to ONYX and queried against the database. <bold>(e)</bold> Among the sex-specific k-mers matched in the database, <inline-formula id="inf4">
<mml:math id="m4">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is calculated on the basis of k-mers derived from the heterogametic chromosome.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fbinf-06-1842658-g001.tif">
<alt-text content-type="machine-generated">Diagram illustrating a workflow for sex inference using genomic data, with five labeled panels: panel a shows reference genome chromosomes, panel b shows k-mer database construction by filtering and collecting sex-specific k-mers, panel c shows creation of sex-specific k-mer databases by removing duplicates, panel d shows query processing with alignment-free k-mer detection from sequence inputs, and panel e shows a scatter plot with KR-het values distinguishing sex types.</alt-text>
</graphic>
</fig>
<p>To construct sex-specific k-mer collections, reference sequences corresponding to sex chromosomes are extracted from a given genome assembly with seqkit (v.2.13.0) (<xref ref-type="bibr" rid="B12">Shen et al., 2024</xref>). In species with XY systems, X- and Y-linked sequences are used, whereas in ZW systems, Z- and W-linked sequences are used. From each chromosome sequence, all possible k-mers of length <inline-formula id="inf5">
<mml:math id="m5">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> are generated using KMC (v3.2.4) (<xref ref-type="bibr" rid="B6">Kokot et al., 2017</xref>). To maintain consistency across analyses, the main analyses in this study were performed using a fixed k-mer length of <italic>k</italic> &#x3d; 33. Let <inline-formula id="inf6">
<mml:math id="m6">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>hom</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf7">
<mml:math id="m7">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mtext>het</mml:mtext>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denote the sets of k-mers derived from the homogametic and heterogametic chromosomes, respectively. In XY systems, <inline-formula id="inf8">
<mml:math id="m8">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>hom</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>X</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf9">
<mml:math id="m9">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mtext>het</mml:mtext>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>Y</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, whereas in ZW systems, <inline-formula id="inf10">
<mml:math id="m10">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>hom</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>Z</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf11">
<mml:math id="m11">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mtext>het</mml:mtext>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>W</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. Heterogametic- and homogametic-specific k-mer collections are then defined using a set-difference formulation:<disp-formula id="equ1">
<mml:math id="m12">
<mml:mrow>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mi>hom</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2216;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:msub>
<mml:mspace width="0.17em"/>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mtext>het</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2216;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</disp-formula>where <inline-formula id="inf12">
<mml:math id="m13">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the set of k-mers derived from autosomal (non-sex chromosome) sequences, and <inline-formula id="inf13">
<mml:math id="m14">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mi>hom</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf14">
<mml:math id="m15">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#x222a;</mml:mo>
<mml:mtext>het</mml:mtext>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> represent k-mer sets derived from the union of autosomes with homogametic and heterogametic chromosomes, respectively. In addition, <inline-formula id="inf15">
<mml:math id="m16">
<mml:mrow>
<mml:msup>
<mml:mi>K</mml:mi>
<mml:mtext>spec</mml:mtext>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> comprises unique k-mers that occur exactly once across the combined autosomal and sex chromosome sequences. This filtering removes duplicate k-mers shared among chromosomes, thereby reducing spurious matches caused by homologous or repetitive sequences.</p>
</sec>
<sec id="s2-2">
<label>2.2</label>
<title>Design of the heterogametic signal score</title>
<p>During classification, sequencing reads from a query sample are processed to extract k-mers, and the resulting query k-mer set is denoted as <inline-formula id="inf16">
<mml:math id="m17">
<mml:mrow>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>Q</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. The number of matches between query k-mers and each chromosome-specific k-mer collection is computed as:<disp-formula id="equ2">
<mml:math id="m18">
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2223;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>Q</mml:mi>
</mml:msub>
<mml:mo>&#x2229;</mml:mo>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2223;</mml:mo>
</mml:mrow>
</mml:math>
</disp-formula>
<disp-formula id="equ3">
<mml:math id="m19">
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2223;</mml:mo>
<mml:msub>
<mml:mi>K</mml:mi>
<mml:mi>Q</mml:mi>
</mml:msub>
<mml:mo>&#x2229;</mml:mo>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2223;</mml:mo>
</mml:mrow>
</mml:math>
</disp-formula>where &#x7c;&#xb7;&#x7c; denotes the cardinality (number of k-mers) of a set. To account for differences in the sizes of the sex-specific k-mer collections, normalized match ratios are calculated as:<disp-formula id="equ4">
<mml:math id="m20">
<mml:mrow>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>K</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mi>p</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
</p>
<p>Finally, ONYX defines a unified score representing the relative contribution of heterogametic chromosome-specific k-mers:<disp-formula id="equ5">
<mml:math id="m21">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
</p>
<p>This score quantifies the presence of heterogametic chromosome-derived signal in the query sequences. In both XY and ZW systems, heterogametic individuals (XY or ZW) are expected to exhibit elevated <inline-formula id="inf17">
<mml:math id="m22">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values due to the presence of Y- or W-linked sequences. Under idealized conditions, this score would be expected to approach 0.5 in heterogametic individuals. In contrast, homogametic samples (XX or ZZ) are expected to exhibit much lower values, approaching zero, because they contain little or no heterogametic signal. In practice, the most important property of this score is that it clearly separates heterogametic and homogametic groups.</p>
</sec>
<sec id="s2-3">
<label>2.3</label>
<title>Decision boundary for biological sex classification</title>
<p>To formalize the classification rule, let <inline-formula id="inf18">
<mml:math id="m23">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">X</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf19">
<mml:math id="m24">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">X</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denote the sets of observed <inline-formula id="inf20">
<mml:math id="m25">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values for heterogametic and homogametic samples, respectively. Let <inline-formula id="inf21">
<mml:math id="m26">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mi>p</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mo>&#xb7;</mml:mo>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> denote the empirical <inline-formula id="inf22">
<mml:math id="m27">
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-th quantile. The upper bound of the homogametic distribution and the lower bound of the heterogametic distribution are defined as:<disp-formula id="equ6">
<mml:math id="m28">
<mml:mrow>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mn>0.95</mml:mn>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">X</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">l</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mn>0.05</mml:mn>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">X</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>where <inline-formula id="inf23">
<mml:math id="m29">
<mml:mrow>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> represents the 95th percentile of the homogametic distribution and <inline-formula id="inf24">
<mml:math id="m30">
<mml:mrow>
<mml:msub>
<mml:mi mathvariant="script">l</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> represents the 5th percentile of the heterogametic distribution. These quantiles capture the central distributions of the two classes while reducing the influence of extreme values, thereby providing a robust estimate of the separation boundary.</p>
<p>The decision threshold <inline-formula id="inf25">
<mml:math id="m31">
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is defined as the midpoint between these quantiles:<disp-formula id="equ7">
<mml:math id="m32">
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>u</mml:mi>
<mml:mi mathvariant="italic">hom</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="script">l</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:mfrac>
</mml:mrow>
</mml:math>
</disp-formula>
</p>
<p>This threshold provides a robust estimate of the boundary separating the two classes while reducing the influence of outliers.</p>
<p>Given an observed value <inline-formula id="inf26">
<mml:math id="m33">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, the predicted class <inline-formula id="inf27">
<mml:math id="m34">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> is defined as:<disp-formula id="equ8">
<mml:math id="m35">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>y</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="" separators="&#x7c;">
<mml:mrow>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>c</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>X</mml:mi>
<mml:mi>Y</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>Z</mml:mi>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x3e;</mml:mo>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mtext>&#x2002;</mml:mtext>
<mml:mi>h</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>c</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>X</mml:mi>
<mml:mi>X</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>Z</mml:mi>
<mml:mi>Z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</disp-formula>
</p>
<p>The inferred biological sex is subsequently determined based on the species-specific chromosomal configuration (e.g., heterogametic &#x3d; male in XY systems and female in ZW systems).</p>
</sec>
<sec id="s2-4">
<label>2.4</label>
<title>Datasets</title>
<p>Whole-genome sequencing (WGS) datasets from human and chicken were used to evaluate the performance of ONYX across distinct sex chromosome systems, allowing direct comparison of inferred signals under XY and ZW modes of sex determination. Human data represent an XY system, whereas chicken represents a ZW system, enabling assessment of the method under different modes of sex determination. Human samples were obtained from the 1000 Genomes Project (1KGP) (<xref ref-type="bibr" rid="B3">Byrska-Bishop et al., 2022</xref>). To ensure balanced representation across populations and sexes, all 26 populations were included, and six individuals per population were selected, consisting of three males and three females (<xref ref-type="sec" rid="s12">Supplementary Table S1</xref>), resulting in a total of 156 individuals. This sampling strategy was designed to minimize population-specific bias while maintaining balanced sex representation, thereby enabling robust evaluation across diverse genetic backgrounds. For the ZW system, a total of 96 chicken WGS datasets (<xref ref-type="bibr" rid="B10">Rabbani et al., 2024</xref>) were analyzed, comprising 48 females and 48 males according to the sex labels reported by <xref ref-type="bibr" rid="B10">Rabbani et al. (2024)</xref> (<xref ref-type="sec" rid="s12">Supplementary Table S2</xref>).</p>
<p>To validate the applicability of ONYX in a non-model species lacking chromosome-scale differentiated sex chromosomes but possessing a known sex-specific genomic region, an additional validation analysis was performed using whole-genome sequencing data from 102 Atlantic cod samples (53 females and 49 males) (<xref ref-type="bibr" rid="B5">Kirubakaran et al., 2019</xref>) (<xref ref-type="sec" rid="s12">Supplementary Table S3</xref>). In Atlantic cod, which has been reported to possess an XY sex determination system, sex chromosomes have not been assembled as distinct chromosome pairs, but a male-specific 9 kb genomic region containing the knuckle on the Y chromosome gene (<italic>zkY</italic>) has been reported (<xref ref-type="bibr" rid="B5">Kirubakaran et al., 2019</xref>). Because this region is much smaller than the chromosome-scale sex-linked sequences used for human and chicken, it provides a practical evaluation of ONYX applicability in species lacking chromosome-scale sex chromosome assemblies. In this study, the X- and Y-linked sequences reported by <xref ref-type="bibr" rid="B5">Kirubakaran et al. (2019)</xref> were used as the homogametic-side and heterogametic-side inputs for ONYX database construction.</p>
<p>To evaluate the robustness of ONYX when only limited sequencing data are available, a subsampling analysis was performed. Paired-end reads were subsampled using rasusa (v3.0.0) (<xref ref-type="bibr" rid="B4">Hall, 2022</xref>) to generate 20 independent replicates at 1,000, 10,000, 50,000, 100,000, and 500,000 read pairs. Subsampling was conducted on six individuals per species (three per sex: HG00138, HG00140, HG00145, HG00171, HG00176, and HG00272 for human; SRR26434649, SRR26434651, SRR26434661, SRR26434654, SRR26434656, and SRR26434663 for chicken; ERR1278028, ERR2402849, ERR2402850, ERR2402851, ERR2402853, and ERR2402856 for Atlantic cod). This design enabled a systematic assessment of the stability and reproducibility of ONYX under varying amounts of sequencing data.</p>
<p>The human, chicken, and Atlantic cod WGS datasets were also used to assess the sensitivity of <inline-formula id="inf28">
<mml:math id="m36">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> to k-mer length. For this analysis, <inline-formula id="inf29">
<mml:math id="m37">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values were evaluated across multiple k-mer settings (<italic>k</italic> &#x3d; 21, 25, 29, 33, 37, and 41) (<xref ref-type="sec" rid="s12">Supplementary Figure S1</xref>).</p>
</sec>
</sec>
<sec sec-type="results" id="s3">
<label>3</label>
<title>Results</title>
<sec id="s3-1">
<label>3.1</label>
<title>Comparison of <inline-formula id="inf30">
<mml:math id="m38">
<mml:mrow>
<mml:mi mathvariant="italic">K</mml:mi>
<mml:msub>
<mml:mi mathvariant="italic">R</mml:mi>
<mml:mrow>
<mml:mi mathvariant="italic">h</mml:mi>
<mml:mi mathvariant="italic">e</mml:mi>
<mml:mi mathvariant="italic">t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> distributions across XY and ZW systems</title>
<p>In this study, the effect of k-mer length on <inline-formula id="inf31">
<mml:math id="m39">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values was examined, and the overall pattern remained stable across multiple k-mer settings (<xref ref-type="sec" rid="s12">Supplementary Figure S1</xref>), indicating that <inline-formula id="inf32">
<mml:math id="m40">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is relatively insensitive to k-mer length. Accordingly, to maintain consistency across analyses, a fixed k-mer size of <italic>k</italic> &#x3d; 33 was used in the main comparative analyses. Under this setting, the distribution of the <inline-formula id="inf33">
<mml:math id="m41">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> score was first examined in the human dataset representing the XY system. A clear separation between the two chromosomal configurations was observed (<xref ref-type="fig" rid="F2">Figure 2</xref>). Male samples (XY), which are heterogametic in the human system, showed elevated <inline-formula id="inf34">
<mml:math id="m42">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values, reflecting the presence of Y chromosome-specific k-mer signals, whereas female samples (XX), which are homogametic, exhibited values close to zero due to the absence of Y-specific signal. The two distributions were well separated with minimal overlap, indicating that <inline-formula id="inf35">
<mml:math id="m43">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> provides a robust discriminative feature for chromosomal sex configuration.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Comparison of <inline-formula id="inf36">
<mml:math id="m44">
<mml:mrow>
<mml:mi mathvariant="italic">K</mml:mi>
<mml:msub>
<mml:mi mathvariant="italic">R</mml:mi>
<mml:mrow>
<mml:mi mathvariant="italic">h</mml:mi>
<mml:mi mathvariant="italic">e</mml:mi>
<mml:mi mathvariant="italic">t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> distributions across different sex chromosome systems (XY and ZW). In the boxplots, the boxes indicate the interquartile range (IQR), the central line indicates the median, and the whiskers indicate the minimum value within Q1 &#x2212; 1.5 &#xd7; IQR and the maximum value within Q3 &#x2b; 1.5 &#xd7; IQR, respectively. The scatter points indicate the observed <inline-formula id="inf37">
<mml:math id="m45">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values for individual samples.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fbinf-06-1842658-g002.tif">
<alt-text content-type="machine-generated">Scatter plot comparing KR_het values among sexes in humans (XY system) and chickens (ZW system), showing higher KR_het in male humans (XY) and female chickens (ZW), with opposite patterns in the respective other sex.</alt-text>
</graphic>
</fig>
<p>The same analysis was then applied to the chicken dataset representing the ZW system. A similarly clear separation was observed (<xref ref-type="fig" rid="F2">Figure 2</xref>). Female samples (ZW), which are heterogametic in birds, showed elevated <inline-formula id="inf38">
<mml:math id="m46">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values owing to the presence of W chromosome-specific k-mer signals, whereas male samples (ZZ), which are homogametic, exhibited values close to zero. Thus, despite the reversal of phenotypic sex associated with the heterogametic state between XY and ZW systems, the behavior of <inline-formula id="inf39">
<mml:math id="m47">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> remained consistent across species: heterogametic individuals showed high values and homogametic individuals showed low values. Furthermore, ONYX also showed clear separation of <inline-formula id="inf40">
<mml:math id="m48">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values between sexes in an additional validation using a species (Atlantic cod) with partial sex-specific genomic regions (<xref ref-type="sec" rid="s12">Supplementary Figure S2</xref>).</p>
<p>These results indicate that <inline-formula id="inf41">
<mml:math id="m49">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> captures a common signal associated with heterogametic sequences across distinct sex chromosomes or partial sex-specific regions. Accordingly, the score provides a unified basis for comparing chromosomal or limited sex genomic configurations among species with different modes of sex determination.</p>
</sec>
<sec id="s3-2">
<label>3.2</label>
<title>Decision boundary and classification accuracy based on <inline-formula id="inf42">
<mml:math id="m50">
<mml:mrow>
<mml:mi mathvariant="italic">K</mml:mi>
<mml:msub>
<mml:mi mathvariant="italic">R</mml:mi>
<mml:mrow>
<mml:mi mathvariant="italic">h</mml:mi>
<mml:mi mathvariant="italic">e</mml:mi>
<mml:mi mathvariant="italic">t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</title>
<p>To evaluate the practical utility of <inline-formula id="inf43">
<mml:math id="m51">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> for biological sex inference, dataset-specific decision boundaries were determined from the observed score distributions. Following the quantile-based procedure described in the Methods section, the resulting thresholds were 0.26 for the human dataset and 0.39 for the chicken dataset (<xref ref-type="fig" rid="F3">Figure 3</xref>). Using these thresholds, samples were classified into heterogametic and homogametic groups according to their <inline-formula id="inf44">
<mml:math id="m52">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values (<xref ref-type="fig" rid="F3">Figure 3</xref>). As a result, all human samples (156/156) were correctly classified (<xref ref-type="sec" rid="s12">Supplementary Table S4</xref>), whereas 94 out of 96 (97.92%) chicken samples were accurately classified (<xref ref-type="sec" rid="s12">Supplementary Table S5</xref>). In the human dataset, values above the threshold corresponded to heterogametic individuals (XY males), whereas values below the threshold corresponded to homogametic individuals (XX females). In the chicken dataset, the same rule was applied, with values above the threshold indicating heterogametic individuals (ZW females) and values below the threshold indicating homogametic individuals (ZZ males). To further investigate atypical chicken samples with elevated <inline-formula id="inf45">
<mml:math id="m53">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values (SRR26434694, <inline-formula id="inf46">
<mml:math id="m54">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> &#x3d; 0.51; SRR26434653, <inline-formula id="inf47">
<mml:math id="m55">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> &#x3d; 0.51; SRR26434692, <inline-formula id="inf48">
<mml:math id="m56">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> &#x3d; 0.38) inconsistent with the sex labels reported in the previous study, an additional genome mapping analysis was performed to compare their chromosomal signal patterns with those of typical male and female samples; detailed procedures are described in the Supplementary Materials. The two samples (SRR26434694 and SRR26434653) classified as female by ONYX showed sex-chromosome-to-autosome mapping ratios similar to those of typical female samples, whereas the borderline sample (SRR26434692) showed ratios similar to those of typical male samples but with slightly reduced chrZ/autosome signal and moderately elevated chrW/autosome signal relative to typical male samples (<xref ref-type="sec" rid="s12">Supplementary Figure S3</xref>). In addition, in Atlantic cod, a species with weakly differentiated sex chromosomes, the resulting <inline-formula id="inf49">
<mml:math id="m57">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> threshold was 0.33 (<xref ref-type="sec" rid="s12">Supplementary Figure S4</xref>), under which all samples were correctly classified (102/102; <xref ref-type="sec" rid="s12">Supplementary Table S6</xref>). Moreover, varying the k-mer length had little effect on classification accuracy, supporting the robustness of ONYX across different k-mer settings (<xref ref-type="sec" rid="s12">Supplementary Figure S5</xref>).</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>
<inline-formula id="inf50">
<mml:math id="m58">
<mml:mrow>
<mml:mi mathvariant="italic">K</mml:mi>
<mml:msub>
<mml:mi mathvariant="italic">R</mml:mi>
<mml:mrow>
<mml:mi mathvariant="italic">h</mml:mi>
<mml:mi mathvariant="italic">e</mml:mi>
<mml:mi mathvariant="italic">t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> thresholds and classification accuracy across different sex chromosome systems (XY and ZW). The x-axis indicates the threshold value of <inline-formula id="inf51">
<mml:math id="m59">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and the y-axis indicates the classification accuracy at each threshold. The vertical dotted lines indicate the thresholds defined as the midpoint between the 95th percentile of the homogametic distribution and the 5th percentile of the heterogametic distribution for each dataset.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fbinf-06-1842658-g003.tif">
<alt-text content-type="machine-generated">Two line graphs compare accuracy versus decision threshold on KR_het for human (XY) and chicken (ZW). Both show accuracy near one for mid-range thresholds but drop to about 0.5 outside this range. Vertical dotted lines indicate selected thresholds for each species.</alt-text>
</graphic>
</fig>
<p>These results demonstrate that the empirical distribution of <inline-formula id="inf52">
<mml:math id="m60">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> can be directly translated into a simple and effective classification rule. Notably, the same decision rule can be applied across both XY and ZW systems and remained applicable in an additional validation using a species with weakly differentiated sex chromosomes, without reversing the interpretation of the score or introducing system-specific parameters.</p>
</sec>
<sec id="s3-3">
<label>3.3</label>
<title>Robustness of ONYX under limited sequencing reads</title>
<p>To assess the robustness of ONYX when only limited sequencing data are available, a subsampling analysis was performed using both human and chicken datasets. For each species, six individuals were selected, comprising three heterogametic and three homogametic samples. Paired-end reads were subsampled to generate datasets containing 1,000, 10,000, 50,000, 100,000, and 500,000 read pairs. For each read-pair condition, 20 independent replicates were generated for each of the selected individuals, resulting in a total of 120 subsampling trials per condition. Across all subsampling conditions, the separation of <inline-formula id="inf53">
<mml:math id="m61">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values between heterogametic and homogametic samples was preserved (<xref ref-type="fig" rid="F4">Figure 4</xref>) (<xref ref-type="sec" rid="s12">Supplementary Tables S7, S8</xref>). Although increased variability was observed at the smallest number of read pairs (1,000 read pairs), the overall distributions remained distinct between male and female samples for human and chicken, indicating that chromosomal sex discrimination remained feasible even when the sequencing data were limited. In contrast to the human and chicken datasets, clear separation of <inline-formula id="inf54">
<mml:math id="m62">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values in Atlantic cod was not consistently achieved at lower read counts and became clearly distinguishable at 500,000 read pairs (<xref ref-type="sec" rid="s12">Supplementary Figure S6</xref>; <xref ref-type="sec" rid="s12">Supplementary Table S9</xref>). These results show that ONYX achieved clear separation across a wide range of read counts in the human and chicken datasets, whereas in Atlantic cod, clear separation appeared to require more sequencing reads because of their limited sex-specific sequences.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Effect of the number of input sequencing reads on <inline-formula id="inf55">
<mml:math id="m63">
<mml:mrow>
<mml:mi mathvariant="italic">K</mml:mi>
<mml:msub>
<mml:mi mathvariant="italic">R</mml:mi>
<mml:mrow>
<mml:mi mathvariant="italic">h</mml:mi>
<mml:mi mathvariant="italic">e</mml:mi>
<mml:mi mathvariant="italic">t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. The x-axis indicates the number of subsampled read pairs, and the y-axis indicates the corresponding <inline-formula id="inf56">
<mml:math id="m64">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values. Blue represents females, and yellow represents males. The shaded areas indicate the 95% confidence intervals of <inline-formula id="inf57">
<mml:math id="m65">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> under subsampling.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fbinf-06-1842658-g004.tif">
<alt-text content-type="machine-generated">Two line charts compare KR_het values for males and females across increasing sequencing read pairs in humans (XY system, left) and chickens (ZW system, right); males show higher KR_het in humans and lower in chickens, with clear separation between sexes at all read pair levels.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<label>4</label>
<title>Discussion</title>
<p>This study presents ONYX, an alignment-free framework for biological sex inference based on k-mer statistics, and demonstrates its applicability across distinct sex chromosome systems (<xref ref-type="fig" rid="F1">Figure 1</xref>). The results show that the proposed <inline-formula id="inf58">
<mml:math id="m66">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> score provides clear separation between heterogametic and homogametic individuals in both XY and ZW systems (<xref ref-type="fig" rid="F2">Figure 2</xref>). In addition, accurate classification was achieved using a simple threshold derived from the empirical score distributions, and this decision rule remained effective across a wide range of sequencing depths (<xref ref-type="fig" rid="F3">Figure 3</xref>). Together, these findings indicate that biological sex inference can be performed using a unified and computationally efficient framework without requiring sequence alignment or system-specific modeling.</p>
<p>A key advantage of ONYX lies in its alignment-free design. By operating directly on k-mer signals derived from sequencing reads, ONYX avoids the need for sequence alignment and enables efficient processing of sequencing data. This design is well suited for large-scale or time-sensitive analyses and supports rapid sex inference in settings where prompt interpretation is required. Another important feature of ONYX is its generalizability across different sex chromosome systems. The same formulation of the <inline-formula id="inf59">
<mml:math id="m67">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> score was shown to produce consistent behavior in both XY and ZW systems, despite differences in genome size, chromosome structure, and the biological interpretation of sex. In both systems, heterogametic individuals exhibited elevated <inline-formula id="inf60">
<mml:math id="m68">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values, while homogametic individuals showed values close to zero. This consistent pattern indicates that the method effectively captures a common signal associated with heterogametic chromosome content, enabling a unified interpretation across species with distinct modes of sex determination. These results suggest that sex inference can be framed as the detection of heterogametic chromosome-specific sequence signals, independent of the underlying chromosomal system.</p>
<p>In the human and chicken datasets, a clear separation of <inline-formula id="inf61">
<mml:math id="m69">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values between male and female samples was maintained, even with limited sequencing reads (<xref ref-type="fig" rid="F4">Figure 4</xref>). However, in Atlantic cod, a clear separation required more sequencing reads (<xref ref-type="sec" rid="s12">Supplementary Figure S6</xref>). This difference may reflect variation in the extent of sex-specific genomic regions present in the target species. Therefore, ONYX is likely to be particularly useful for low-coverage sequencing datasets of species with clearly differentiated sex chromosomes and sufficiently extensive sex-specific regions, whereas species with limited sex-specific sequence information may require more sequencing reads to achieve reliable separation.</p>
<p>As a technical limitation, ONYX relies on the availability of reference genome sequences with annotated sex chromosomes to construct sex-specific k-mer collections. The supplementary validation using Atlantic cod indicates that ONYX is not restricted to systems with highly differentiated sex chromosomes. Even in a species lacking chromosome-scale sex chromosome assemblies, the method correctly classified all samples (<xref ref-type="sec" rid="s12">Supplementary Figure S4</xref>; <xref ref-type="sec" rid="s12">Supplementary Table S6</xref>) when a previously reported sex-specific genomic region was used for ONYX database construction, although the <inline-formula id="inf62">
<mml:math id="m70">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values showed slightly greater dispersion than those observed in human and chicken (<xref ref-type="sec" rid="s12">Supplementary Figure S2</xref>). The slightly elevated <inline-formula id="inf63">
<mml:math id="m71">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values observed in Atlantic cod may reflect the limited and asymmetric sequence information used for database construction in this system, as well as the possible presence of autosomal regions with sequence similarity to the reported sex-specific region. This finding supports the use of ONYX in additional systems in which only limited sex-linked sequences are available, while also emphasizing that performance depends on the availability and quality of such sequences. Consequently, its applicability may be limited in species where such genomic information is incomplete or poorly characterized. In addition, the current framework is most directly applicable to species with binary chromosomal sex determination and may require further adaptation for more complex or atypical systems.</p>
<p>A key distinction between ONYX and many targeted marker-based approaches is that it enables a unified interpretation across distinct sex chromosome systems without system-specific modifications, while quantifying heterogametic-specific sequence signal as a continuous score, <inline-formula id="inf64">
<mml:math id="m72">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, rather than relying on the binary presence or absence of predefined loci, diagnostic polymorphisms, or length differences in specific genomic regions. Indeed, ONYX identified atypical chicken samples whose <inline-formula id="inf65">
<mml:math id="m73">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values were inconsistent with the sex labels reported in the previous study, and the observed <inline-formula id="inf66">
<mml:math id="m74">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> patterns corresponded to their sex-chromosome-to-autosome ratios obtained by genome mapping (<xref ref-type="sec" rid="s12">Supplementary Figure S3</xref>). The two samples classified as female by ONYX showed <inline-formula id="inf67">
<mml:math id="m75">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> values close to those expected for typical female samples (approximately 0.5), and their sex-chromosome-to-autosome mapping ratios were also similar to those of typical female samples. In contrast, the borderline sample showed a <inline-formula id="inf68">
<mml:math id="m76">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> value of 0.38 and retained a largely male-like mapping profile, although the genome-mapping ratio indicated a small shift away from the typical male pattern, with reduced chrZ-associated signal and elevated chrW-associated signal (<xref ref-type="sec" rid="s12">Supplementary Figure S3</xref>). This suggests that <inline-formula id="inf69">
<mml:math id="m77">
<mml:mrow>
<mml:mi>K</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> can capture non-random sex-chromosome-derived genomic signal even in near-threshold cases. At the same time, such cases indicate that samples located close to the decision boundary should be interpreted with caution, particularly when reference score distributions are unavailable. Thus, the practical value of ONYX lies not only in categorical sex assignment, but also in its ability to flag borderline or unusual samples that may warrant further evaluation. This quantitative representation may be useful for degraded, contaminated, or otherwise unusual samples, including those with atypical sex chromosome constitutions, for which locus-specific marker-based approaches may be difficult to apply. Furthermore, ONYX does not require user-side marker design, because sex-specific k-mer collections can be constructed automatically from reference sequences, including partial sex-linked regions. In addition, its computational efficiency may also be particularly advantageous for large-scale genomic datasets and time-sensitive analytical workflows. In summary, these features highlight the potential of ONYX as a scalable and broadly applicable approach for sex inference in genomic analyses.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>All public datasets used in this study are described in the Methods section and the Supplementary Materials. The ONYX program developed in this study is available at: <ext-link ext-link-type="uri" xlink:href="https://github.com/omics-tools/onyx">https://github.com/omics-tools/onyx</ext-link>.</p>
</sec>
<sec sec-type="ethics-statement" id="s6">
<title>Ethics statement</title>
<p>Ethical approval was not required for this study involving humans and animals in accordance with local legislation and institutional requirements because all analyses were conducted using publicly available genomic datasets and no new material was collected by the author. Written informed consent to participate in this study was not required from the participants or the participants&#x2019; legal guardians/next of kin in accordance with the national legislation and the institutional requirements.</p>
</sec>
<sec sec-type="author-contributions" id="s7">
<title>Author contributions</title>
<p>KI: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing &#x2013; original draft, Writing &#x2013; review and editing.</p>
</sec>
<ack>
<title>Acknowledgements</title>
<p>The super-computing resource was provided by Human Genome Center (the Univ. of Tokyo).</p>
</ack>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="ai-statement" id="s10">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="s11">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec sec-type="supplementary-material" id="s12">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fbinf.2026.1842658/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fbinf.2026.1842658/full&#x23;supplementary-material</ext-link>
</p>
<supplementary-material xlink:href="DataSheet1.pdf" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/>
<supplementary-material xlink:href="Table1.xlsx" id="SM2" mimetype="application/xlsx" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>&#xc1;lvarez-Sandoval</surname>
<given-names>B. A.</given-names>
</name>
<name>
<surname>Manzanilla</surname>
<given-names>L. R.</given-names>
</name>
<name>
<surname>Montiel</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>Sex determination in highly fragmented human DNA by high-resolution melting (HRM) analysis</article-title>. <source>PLoS One</source> <volume>9</volume>, <fpage>e104629</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0104629</pub-id>
<pub-id pub-id-type="pmid">25098828</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Buonasera</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Eerkens</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>de Flamingh</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Engbring</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Yip</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>H.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>A comparison of proteomic, genomic, and osteological methods of archaeological sex estimation</article-title>. <source>Sci. Rep.</source> <volume>10</volume>, <fpage>11897</fpage>. <pub-id pub-id-type="doi">10.1038/s41598-020-68550-w</pub-id>
<pub-id pub-id-type="pmid">32681049</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Byrska-Bishop</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Evani</surname>
<given-names>U. S.</given-names>
</name>
<name>
<surname>Zhao</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Basile</surname>
<given-names>A. O.</given-names>
</name>
<name>
<surname>Abel</surname>
<given-names>H. J.</given-names>
</name>
<name>
<surname>Regier</surname>
<given-names>A. A.</given-names>
</name>
<etal/>
</person-group> (<year>2022</year>). <article-title>High-coverage whole-genome sequencing of the expanded 1000 genomes project cohort including 602 trios</article-title>. <source>Cell.</source> <volume>185</volume>, <fpage>3426</fpage>&#x2013;<lpage>3440.e19</lpage>. <pub-id pub-id-type="doi">10.1016/j.cell.2022.08.004</pub-id>
<pub-id pub-id-type="pmid">36055201</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hall</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Rasusa: randomly subsample sequencing reads to a specified coverage</article-title>. <source>J. Open Source Softw.</source> <volume>7</volume>, <fpage>3941</fpage>. <pub-id pub-id-type="doi">10.21105/joss.03941</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kirubakaran</surname>
<given-names>T. G.</given-names>
</name>
<name>
<surname>Andersen</surname>
<given-names>&#xd8;.</given-names>
</name>
<name>
<surname>Rosa</surname>
<given-names>M. C. D.</given-names>
</name>
<name>
<surname>Andersstuen</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Hallan</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Kent</surname>
<given-names>M. P.</given-names>
</name>
<etal/>
</person-group> (<year>2019</year>). <article-title>Characterization of a male specific region containing a candidate sex determining gene in Atlantic cod</article-title>. <source>Sci. Rep.</source> <volume>9</volume>, <fpage>116</fpage>. <pub-id pub-id-type="doi">10.1038/s41598-018-36748-8</pub-id>
<pub-id pub-id-type="pmid">30644412</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kokot</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Dlugosz</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Deorowicz</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>KMC 3: counting and manipulating k-mer statistics</article-title>. <source>Bioinformatics</source> <volume>33</volume>, <fpage>2759</fpage>&#x2013;<lpage>2761</lpage>. <pub-id pub-id-type="doi">10.1093/bioinformatics/btx304</pub-id>
<pub-id pub-id-type="pmid">28472236</pub-id>
</mixed-citation>
</ref>
<ref id="B7">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Laverde</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2013</year>). <article-title>Sex determination problems in forensic genetic analysis</article-title>. <source>Forensic Sci. Int. Genet. Suppl. Ser.</source> <volume>4</volume> (<issue>4</issue>), <fpage>e350</fpage>&#x2013;<lpage>e351</lpage>. <pub-id pub-id-type="doi">10.1016/j.fsigss.2013.10.178</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Masuyama</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Shojo</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Nakanishi</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Inokuchi</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Adachi</surname>
<given-names>N.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Sex determination from fragmented and degenerated DNA by amplified product-length polymorphism bidirectional SNP analysis of amelogenin and SRY genes</article-title>. <source>PLoS One</source> <volume>12</volume>, <fpage>e0169348</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0169348</pub-id>
<pub-id pub-id-type="pmid">28052096</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Prugnolle</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>de Meeus</surname>
<given-names>T.</given-names>
</name>
</person-group> (<year>2002</year>). <article-title>Inferring sex-biased dispersal from population genetic tools: a review</article-title>. <source>Heredity</source> <volume>88</volume>, <fpage>161</fpage>&#x2013;<lpage>165</lpage>. <pub-id pub-id-type="doi">10.1038/sj.hdy.6800060</pub-id>
<pub-id pub-id-type="pmid">11920116</pub-id>
</mixed-citation>
</ref>
<ref id="B10">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rabbani</surname>
<given-names>M. A. G.</given-names>
</name>
<name>
<surname>Vallejo-Trujillo</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Wu</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Miedzinska</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Faruque</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Watson</surname>
<given-names>K. A.</given-names>
</name>
<etal/>
</person-group> (<year>2024</year>). <article-title>Whole genome sequencing of three native chicken varieties (Common Deshi, Hilly and Naked Neck) of Bangladesh</article-title>. <source>Sci. Data</source> <volume>11</volume>, <fpage>1432</fpage>. <pub-id pub-id-type="doi">10.1038/s41597-024-04291-z</pub-id>
<pub-id pub-id-type="pmid">39719437</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Robertson</surname>
<given-names>B. C.</given-names>
</name>
<name>
<surname>Gemmell</surname>
<given-names>N. J.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>PCR-based sexing in conservation biology: wrong answers from an accurate methodology?</article-title> <source>Conserv. Genet.</source> <volume>7</volume> (<issue>7</issue>), <fpage>267</fpage>&#x2013;<lpage>271</lpage>. <pub-id pub-id-type="doi">10.1007/s10592-005-9105-6</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shen</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Sipos</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Zhao</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>SeqKit2: a Swiss army knife for sequence and alignment processing</article-title>. <source>iMeta</source> <volume>3</volume>, <fpage>e191</fpage>. <pub-id pub-id-type="doi">10.1002/imt2.191</pub-id>
<pub-id pub-id-type="pmid">38898985</pub-id>
</mixed-citation>
</ref>
<ref id="B13">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Skoglund</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Stor&#xe5;</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>G&#xf6;therstr&#xf6;m</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Jakobsson</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2013</year>). <article-title>Accurate sex identification of ancient human remains using DNA shotgun sequencing</article-title>. <source>J. Archaeol. Sci.</source> <volume>40</volume>, <fpage>4477</fpage>&#x2013;<lpage>4482</lpage>. <pub-id pub-id-type="doi">10.1016/j.jas.2013.07.004</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Stovall</surname>
<given-names>W. R.</given-names>
</name>
<name>
<surname>Taylor</surname>
<given-names>H. R.</given-names>
</name>
<name>
<surname>Black</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Grosser</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Rutherford</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Gemmell</surname>
<given-names>N. J.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Genetic sex assignment in wild populations using genotyping-by-sequencing data: a statistical threshold approach</article-title>. <source>Mol. Ecol. Resour.</source> <volume>18</volume>, <fpage>179</fpage>&#x2013;<lpage>190</lpage>. <pub-id pub-id-type="doi">10.1111/1755-0998.12767</pub-id>
<pub-id pub-id-type="pmid">29443461</pub-id>
</mixed-citation>
</ref>
<ref id="B15">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sullivan</surname>
<given-names>K. M.</given-names>
</name>
<name>
<surname>Mannucci</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Kimpton</surname>
<given-names>C. P.</given-names>
</name>
<name>
<surname>Gill</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>1993</year>). <article-title>A rapid and quantitative DNA sex test: fluorescence-based PCR analysis of X-Y homologous gene amelogenin</article-title>. <source>BioTechniques.</source> <volume>15</volume>, <fpage>636</fpage>&#x2013;<lpage>641</lpage>.<pub-id pub-id-type="pmid">8251166</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>von Thaden</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Nowak</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Tiesmeyer</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Reiners</surname>
<given-names>T. E.</given-names>
</name>
<name>
<surname>Alves</surname>
<given-names>P. C.</given-names>
</name>
<name>
<surname>Lyons</surname>
<given-names>L. A.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <article-title>Applying genomic data in wildlife monitoring: development guidelines for genotyping degraded samples with reduced single nucleotide polymorphism panels</article-title>. <source>Mol. Ecol. Resour.</source> <volume>20</volume>, <fpage>662</fpage>&#x2013;<lpage>680</lpage>. <pub-id pub-id-type="doi">10.1111/1755-0998.13136</pub-id>
<pub-id pub-id-type="pmid">31925943</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Webster</surname>
<given-names>T. H.</given-names>
</name>
<name>
<surname>Couse</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Grande</surname>
<given-names>B. M.</given-names>
</name>
<name>
<surname>Karlins</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Phung</surname>
<given-names>T. N.</given-names>
</name>
<name>
<surname>Richmond</surname>
<given-names>P. A.</given-names>
</name>
<etal/>
</person-group> (<year>2019</year>). <article-title>Identifying, understanding, and correcting technical artifacts on the sex chromosomes in next-generation sequencing data</article-title>. <source>GigaScience</source> <volume>8</volume>, <fpage>giz074</fpage>. <pub-id pub-id-type="doi">10.1093/gigascience/giz074</pub-id>
<pub-id pub-id-type="pmid">31289836</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn fn-type="custom" custom-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/868988/overview">Asim Bikas Das</ext-link>, National Institute of Technology Warangal, India</p>
</fn>
<fn fn-type="custom" custom-type="reviewed-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/564587/overview">Liang Guo</ext-link>, Hunan Normal University, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3475148/overview">Yanzhe Wang</ext-link>, Ocean University of China, China</p>
</fn>
</fn-group>
</back>
</article>