{"id":191541,"date":"2025-10-10T23:17:12","date_gmt":"2025-10-10T23:17:12","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/191541\/"},"modified":"2025-10-10T23:17:12","modified_gmt":"2025-10-10T23:17:12","slug":"nucleotide-dependency-analysis-of-genomic-language-models-detects-functional-elements","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/191541\/","title":{"rendered":"Nucleotide dependency analysis of genomic language models detects functional elements"},"content":{"rendered":"<p>SpeciesLM training<\/p>\n<p>For SpeciesLM metazoa, we obtained metazoan genomes comprising 494 different species from the Ensembl 110 database<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Martin, F. J. et al. Ensembl 2023. Nucleic Acids Res. 51, D933&#x2013;D941 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR36\" id=\"ref-link-section-d90873645e1629\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>. For each annotated protein-coding gene, we extracted 2,000 bases 5\u2032 to the start codon and trained a species-aware masked language model on this region. We followed the training and tokenization procedure outlined in Species-aware gLMs<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 4\" title=\"Karollus, A. et al. Species-aware DNA language models capture regulatory elements and their evolution. Genome Biol 25, 83 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR4\" id=\"ref-link-section-d90873645e1633\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>, but kept the batch size at 2,304, despite increasing the input sequence length, resulting in approximately twice as many tokens seen during training as in SpeciesLM fungi 5\u2032. We used rotary positional encoding to inject positional information into the Transformer blocks.<\/p>\n<p>For SpeciesLM fungi, we deviated from the above recipe by tokenizing each base of the sequences discussed in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 4\" title=\"Karollus, A. et al. Species-aware DNA language models capture regulatory elements and their evolution. Genome Biol 25, 83 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR4\" id=\"ref-link-section-d90873645e1640\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a> separately (single nucleotide, 1-mer tokenization) and using learned absolute positional encodings. To stabilize training, we increased dropout in the multilayer perceptron layers of the transformer to 0.2 and set it to 0.1 for attention dropout.<\/p>\n<p>Overall, we improved the training efficiency by fusing biases of the linear layers, the multilayer perceptron in the transformer and the optimizer using Nvidia Apex. We used FlashAttention2 (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 51\" title=\"Dao, T. FlashAttention-2: faster attention with better parallelism and work partitioning. In Proc. 12th International Conference on Learning Representations (ICLR, 2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR51\" id=\"ref-link-section-d90873645e1647\" rel=\"nofollow noopener\" target=\"_blank\">51<\/a>) to train all models.<\/p>\n<p>Nucleotide dependencies and variant influence score<\/p>\n<p>We define the dependency between a variant nucleotide kalt at position i and a target position j as<\/p>\n<p>$${e}_{i,j,{k}_{\\mathrm{alt}}}=\\max {\\left\\{\\left|{\\log }_{2}\\left(\\frac{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}={k}_{\\mathrm{alt}},\\ldots ,{n}_{N}\\right)}{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}={k}_{\\mathrm{ref}},\\ldots ,{n}_{N}\\right)}\\right)\\right|\\right\\}}_{k{\\rm{\\in }}\\left\\{{\\rm{A}},{\\rm{C}},{\\rm{G}},{\\rm{T}}\\right\\}}$$<\/p>\n<p>where k is one of the four possible nucleotides A, C, G or T; ni and nj are the nucleotides at position i and j, respectively; kref is the nucleotide in the reference, nonaltered input sequence, and kalt is the nucleotide in the alternative sequence. The odds estimates are computed from the predictions of a gLM under consideration. For this computation, none of the nucleotides (including the target nucleotide) is masked.<\/p>\n<p>The variant influence score \\({{e}_{i,k}}_{\\mathrm{alt}}\\), for a sequence of N nucleotides, is defined by averaging the dependencies on a variant nucleotide at position i across all positions j = 1, \u2026, N such that \\(j\\ne i\\).<\/p>\n<p>A nucleotide dependency ei,j between a query position i and a target position j on a sequence of N nucleotides is given by:<\/p>\n<p>$${e}_{i,j}=\\max {\\left\\{\\left|{\\log }_{2}\\left(\\frac{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}{\\rm{\\ne }}{k}_{\\mathrm{ref}},\\ldots ,{n}_{N}\\right)}{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}={k}_{\\mathrm{ref}},\\ldots ,{n}_{N}\\right)}\\right)\\right|\\right\\}}_{k{\\rm{\\in }}\\left\\{{\\rm{A}},{\\rm{C}},{\\rm{G}},{\\rm{T}}\\right\\}}$$<\/p>\n<p>We compute dependencies for all i,j pairs such that \\(i\\ne j,\\) that is we do not consider self-dependencies.<\/p>\n<p>In autoregressive models, a query variant cannot directly affect the prediction of a target position located 5\u2032 of the query. Thus, to obtain the lower triangular matrix of the dependency map, we also run the model on the reverse strand.<\/p>\n<p>In the SpeciesLM metazoa, which predicts nucleotides as overlapping 6-mers, the procedure needs to be adapted to yield one prediction for each target nucleotide. This is achieved by first computing for each of the six 6-mers that overlap the target nucleotide of interest, which probability it implies for this target nucleotide, as previously described<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 4\" title=\"Karollus, A. et al. Species-aware DNA language models capture regulatory elements and their evolution. Genome Biol 25, 83 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR4\" id=\"ref-link-section-d90873645e2553\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>. We then average these six probabilities to obtain a single probability.<\/p>\n<p>For the Nucleotide Transformer models, which predict only nonoverlapping 6-mers, we use a similar approach. Consider the case of predicting the probability of observing nucleotide n at position i of the sequence. In the tokenized sequence, this nucleotide has position p in the kth 6-mer where:<\/p>\n<p>$$k=\\left\\lfloor \\frac{i}{6}\\right\\rfloor$$<\/p>\n<p>$$\\begin{array}{cc}p=i &amp; \\mathrm{mod}6\\end{array}$$<\/p>\n<p>The model predicts a distribution over all 46 possible 6-mers at position k. We first discard all predictions corresponding to 6-mers that contain a nucleotide that differs from the reference sequence at any location other than p\u2014which leaves only four 6-mers. We renormalize so that the predicted probability of these remaining 6-mers sums to one. We then record the (renormalized) probability of the 6-mer that has the desired nucleotide n at position p.<\/p>\n<p>Apart from extracting nucleotide-level probabilities with the above-mentioned method, we have also experimented with computing the probability for a nucleotide at position i as the sum of all k-mers containing that nucleotide at that position. Evaluation of nucleotide dependencies within tRNAs revealed a worse performance with this method.<\/p>\n<p>Variant impact benchmarks<\/p>\n<p>As our metric of variant impact, we used the variant influence score. This average is computed over the full receptive field of the model for the SpeciesLM. For Nucleotide Transformer models, we only average over the central 2\u2009kb, so as to facilitate comparisons. Nevertheless, we provide the full sequence context for which this model has been trained.<\/p>\n<p>For comparison, we also calculated a variant effect score based on the gLM reconstruction at the query variant. Specifically, this score is the log ratio between the predicted probability of the variant nucleotide and the predicted probability of the reference nucleotide<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 5\" title=\"Benegas, G., Batra, S. S. &amp; Song, Y. S. DNA language models are powerful predictors of genome-wide variant effects. Proc. Natl Acad. Sci. USA 120, e2311219120 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR5\" id=\"ref-link-section-d90873645e2681\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 6\" title=\"Benegas, G., Albors, C., Aw, A. J., Ye, C. &amp; Song, Y. S. A DNA language model based on multispecies alignment predicts the effects of genome-wide variants. Nat. Biotechnol. &#010;                  https:\/\/doi.org\/10.1038\/s41587-024-02511-w&#010;                  &#010;                 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR6\" id=\"ref-link-section-d90873645e2684\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>.<\/p>\n<p>Finally, we downloaded conservation scores (PhyloP and PhastCons) for human and S. cerevisiae from the University of California, Santa Cruz genome browser database<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Siepel, A. et al. Evolutionarily conserved elements in vertebrate, insect, worm, and yeast genomes. Genome Res 15, 1034&#x2013;1050 (2005).\" href=\"#ref-CR21\" id=\"ref-link-section-d90873645e2694\">21<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Pollard, K. S., Hubisz, M. J., Rosenbloom, K. R. &amp; Siepel, A. Detection of nonneutral substitution rates on mammalian phylogenies. Genome Res 20, 110&#x2013;121 (2010).\" href=\"#ref-CR22\" id=\"ref-link-section-d90873645e2694_1\">22<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Sullivan, P. F. et al. Leveraging base-pair mammalian constraint to understand genetic variation and human disease. Science 380, eabn2937 (2023).\" href=\"#ref-CR23\" id=\"ref-link-section-d90873645e2694_2\">23<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 24\" title=\"Kuderna, L. F. K. et al. Identification of constrained sequence elements across 239 primate genomes. Nature 625, 735&#x2013;742 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR24\" id=\"ref-link-section-d90873645e2697\" rel=\"nofollow noopener\" target=\"_blank\">24<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 52\" title=\"Raney, B. J. et al. The UCSC Genome Browser database: 2024 update. Nucleic Acids Res 52, D1082&#x2013;D1088 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR52\" id=\"ref-link-section-d90873645e2700\" rel=\"nofollow noopener\" target=\"_blank\">52<\/a>. For humans, these include the conservation scores based on the 100-way, 447-way and 470-way alignment.<\/p>\n<p>Promoter saturation mutagenesis<\/p>\n<p>Promoter saturation mutagenesis (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 20\" title=\"Kircher, M. et al. Saturation mutagenesis of twenty disease-associated regulatory elements at single base-pair resolution. Nat. Commun. 10, 3583 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR20\" id=\"ref-link-section-d90873645e2711\" rel=\"nofollow noopener\" target=\"_blank\">20<\/a>) data mapped to hg38 were provided by V. Agarwal (mRNA Center of Excellence, Sanofi, Waltham, MA, USA). As discussed in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 29\" title=\"Avsec, &#x17D;. et al. Effective gene expression prediction from sequence by integrating long-range interactions. Nat. Methods 18, 1196&#x2013;1203 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR29\" id=\"ref-link-section-d90873645e2715\" rel=\"nofollow noopener\" target=\"_blank\">29<\/a>, we excluded the FOXE1 promoter due to the low replicability of the measurements, leaving nine promoters and comprising 8,635 variants. Variants were then intersected with the human gene 5\u2032 regions (that is, the regions 2-kb 5\u2032 of annotated start codons). Then, the variant influence score was calculated for each variant measured in the assay from the LM dependencies for these regions. The variant influence score was then correlated with the absolute value of the measured log2 fold change in expression. This correlation was computed for each promoter and then averaged across promoters.<\/p>\n<p>To determine confidence intervals, we performed 100 bootstrap samples per promoter and recomputed the correlation for each bootstrap sample. The confidence interval was defined by adding\/subtracting two standard deviations of the average correlation.<\/p>\n<p>eQTL variants<\/p>\n<p>For human eQTL, we downloaded SUSIE<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Wang, G., Sarkar, A., Carbonetto, P. &amp; Stephens, M. A simple new approach to variable selection in regression, with application to genetic fine mapping. J. R. Stat. Soc. Series B 82, 1273&#x2013;1300 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR26\" id=\"ref-link-section-d90873645e2733\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> fine-mapped GTEx eQTL data from EBI. We then intersected these data with the human gene 5\u2032 regions. This procedure, by design, enriches for promoter eQTL. Similar to the details in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 29\" title=\"Avsec, &#x17D;. et al. Effective gene expression prediction from sequence by integrating long-range interactions. Nat. Methods 18, 1196&#x2013;1203 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR29\" id=\"ref-link-section-d90873645e2737\" rel=\"nofollow noopener\" target=\"_blank\">29<\/a>, we considered every eQTL variant with a posterior inclusion probability higher than 0.9 as putative causal and we considered any eQTL variant with posterior inclusion probability lower than 0.01 as putative noncausal. We only considered putative noncausal eQTL intersecting regions, which also include at least one causal eQTL. This procedure gave 2,958 eQTL variants, of which 1,631 were classified as putative causal. Then, the influence score for each variant was computed based on the nucleotide dependencies in these regions. We ranked variants according to the influence score. Confidence intervals were computed using bootstrapping as before.<\/p>\n<p>For yeast eQTL, we downloaded the results of an MPRA study assessing candidate cis-eQTL variants<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Renganaath, K. et al. Systematic identification of cis-regulatory variants that cause gene expression differences in a yeast cross. eLife 9, e62669 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR27\" id=\"ref-link-section-d90873645e2747\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>. After this study, we classify any eQTL variant with false discovery rate\u2009&lt;\u20090.05 in the MPRA assay as causal and we classify any eQTL with (unadjusted) P value of &gt;0.2 as noncausal. This yielded 3,056 eQTL variants, of which 379 were classified as causal. These eQTL variants were then intersected with yeast gene 5\u2032 regions and influence scores were computed from the SpeciesLM fungi dependency maps. Confidence intervals were computed using bootstrapping as before.<\/p>\n<p>Clinvar<\/p>\n<p>We used ClinVar version 2023_07_17 (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 19\" title=\"Landrum, M. J. et al. ClinVar: improving access to variant interpretations and supporting evidence. Nucleic Acids Res 46, D1062&#x2013;D1067 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR19\" id=\"ref-link-section-d90873645e2762\" rel=\"nofollow noopener\" target=\"_blank\">19<\/a>), previously downloaded from <a href=\"https:\/\/ftp.ncbi.nlm.nih.gov\/pub\/clinvar\/vcf_GRCh38\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/ftp.ncbi.nlm.nih.gov\/pub\/clinvar\/vcf_GRCh38\/<\/a>. We considered noncoding any variant in the categories \u2018intron_variant\u2019, \u20185_prime_UTR_variant\u2019, \u2018splice_acceptor_variant\u2019, \u2018splice_donor_variant\u2019, \u20183_prime_UTR_variant\u2019, \u2018non_coding_transcript_variant\u2019, \u2018genic_upstream_transcript_variant\u2019 and \u2018genic_downstream_transcript_variant\u2019. As discussed in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 53\" title=\"Cheng, J. et al. Accurate proteome-wide missense variant effect prediction with AlphaMissense. Science 381, eadg7492 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR53\" id=\"ref-link-section-d90873645e2773\" rel=\"nofollow noopener\" target=\"_blank\">53<\/a>, we considered as pathogenic any variant classified as pathogenic or likely pathogenic and as benign any variant classified as benign or likely benign. We excluded variants with fewer than one review star. This resulted in 385,572 variants, of which 22,313 were classified as pathogenic.<\/p>\n<p>As most ClinVar variants fall outside the 5\u2032 regions of genes, we chose not to intersect with these regions. Instead, we computed the dependency map centered on the variant of interest. Confidence intervals were computed using bootstrapping as before.<\/p>\n<p>Borzoi<\/p>\n<p>We ran Borzoi in mixed precision to reduce computational overhead using the PyTorch Borzoi package. Replicate zero of Borzoi was used for all analyses. For the eQTL analysis, we computed the L2 score as discussed in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 25\" title=\"Linder, J., Srivastava, D., Yuan, H., Agarwal, V. &amp; Kelley, D. R. Predicting RNA-seq coverage from DNA sequence as a unifying model of gene regulation. Nat. Genet. 57, 949&#x2013;961 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR25\" id=\"ref-link-section-d90873645e2788\" rel=\"nofollow noopener\" target=\"_blank\">25<\/a>. We used the tissues of borzoi predictions matching the eQTLs. If several Borzoi tracks matched the tissue, we averaged the scores across these tracks. For ClinVar, we followed a similar approach, except that we collected Borzoi predictions for all tissues and assays. We then computed the L2 score across tracks to give a tissue-agnostic and mechanism-agnostic variant-effect score.<\/p>\n<p>For the Kircher saturation mutagenesis dataset, we computed the logSED score as discussed in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 25\" title=\"Linder, J., Srivastava, D., Yuan, H., Agarwal, V. &amp; Kelley, D. R. Predicting RNA-seq coverage from DNA sequence as a unifying model of gene regulation. Nat. Genet. 57, 949&#x2013;961 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR25\" id=\"ref-link-section-d90873645e2795\" rel=\"nofollow noopener\" target=\"_blank\">25<\/a>. We mapped the cell types used in the assay to Borzoi tracks as follows: for the GP1BB, HBB, NHBG1 and PKLR promoters, we used \u2018RNA:K562\u2019; for the F9 and LDLR promoters, we used \u2018RNA:HepG2\u2019; for HNF4A and MSMB, we used \u2018RNA:kidney\u2019 (as HEK293 is originally a kidney cell) and for TERT, we used \u2018RNA:astrocyte\u2019 (as glioblastoma are cancerous astrocytes).<\/p>\n<p>Integrative model using Borzoi and the influence score<\/p>\n<p>We integrated Borzoi and the influence score using logistic regression\u2014for the eQTL and ClinVar predicitions\u2014and using linear regression for the mutagenesis data using fivefold cross-validation scheme for all benchmarks. Notably, for the Kircher saturation mutagenesis task, model fitting and cross-validation were performed separately for each promoter, and performance was then averaged across folds and promoters.<\/p>\n<p>Alternative dependency metrics<\/p>\n<p>All benchmarks on alternative dependency metrics were performed on the SpeciesLM fungi.<\/p>\n<p>Gradient-based<\/p>\n<p>We computed the gradient of the prediction for each nucleotide at position i with respect to each nucleotide at position j yielding a 4\u2009\u00d7\u20094 matrix. To achieve this, we first replaced the tokenization layer with a one-hot encoding and a linear layer, which map the one-hot encoded nucleotides to their respective token embeddings. We then propagated gradients from each target nucleotide prediction to each one-hot encoded input nucleotide. As a metric of nucleotide dependency, we then used the maximum absolute value across the 4\u2009\u00d7\u20094 matrix of each i,j position.<\/p>\n<p>Mask-based<\/p>\n<p>Masked-based dependencies are computed as:<\/p>\n<p>$${e}_{i,j}=\\max {\\left\\{\\left|{\\log }_{2}\\left(\\frac{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}=\\left[\\mathrm{MASK}\\right],\\ldots ,{n}_{N}\\right)}{{\\rm{o}}\\hat{{\\rm{d}}}\\mathrm{ds}\\left({n}_{\\!j}={k|}{n}_{1},\\ldots ,{n}_{i}={k}_{\\mathrm{ref}},\\ldots ,{n}_{N}\\right)}\\right)\\right|\\right\\}}_{k{\\rm{\\in }}\\left\\{{\\rm{A}},{\\rm{C}},{\\rm{G}},{\\rm{T}}\\right\\}}$$<\/p>\n<p>where \u2018[MASK]\u2019 stands for the mask token, k belongs to one of the four possible nucleotides A, C, G or T; ni and nj are the nucleotides at position i and j, respectively; kref is the nucleotide in the reference, nonaltered input sequence.<\/p>\n<p>                           S. cerevisiae tRNA structure benchmark<\/p>\n<p>S. cerevisiae genome assembly version R64-1-1 and annotation version R64-1-1.53 were downloaded from EnsemblFungi<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Martin, F. J. et al. Ensembl 2023. Nucleic Acids Res. 51, D933&#x2013;D941 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR36\" id=\"ref-link-section-d90873645e3230\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>. The S. cerevisiae tRNA secondary structures were downloaded from GtRNAdb<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 54\" title=\"Chan, P. P. &amp; Lowe, T. M. GtRNAdb: a database of transfer RNA genes detected in genomic sequence. Nucleic Acids Res 37, D93&#x2013;D97 (2009).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR54\" id=\"ref-link-section-d90873645e3237\" rel=\"nofollow noopener\" target=\"_blank\">54<\/a>. We considered only the tRNAs overlapping the 1\u2009kb 5\u2032 regions to any yeast start codon, yielding 172 tRNA sequences. Subsequently, dependency maps on tRNAs were processed by taking the maximum between ei,j and ej,i. This symmetrizes the dependency map and achieves one unique score per pair of positions in the tRNA sequence. We then used this score to predict whether a pair of nucleotides belonged to a secondary structure contact.<\/p>\n<p>Assessment of donor\u2013acceptor dependencies in S. cerevisiae<\/p>\n<p>We extracted intron sequences by selecting the regions within annotated gene intervals that lie between exon annotations. This resulted in 380 sequences. We then retained only introns bounded by canonical splice site dinucleotides GT and AG, yielding 272 sequences. We then computed the average dependency between every donor and acceptor nucleotide within the intron as a measure of dependency between the donor and acceptor sites. We designed two negative sets for a given intron. For the negative set \u2018Decoy acceptor\u2019, we compute the average dependency between donor nucleotides and each AG dinucleotide within the intron that does not include the acceptor site. For the negative set \u2018Matched distance\u2019, we sampled four random dependencies between nucleotides that were as distant from each other as the donor was from the acceptor, without including the donor or acceptor themselves.<\/p>\n<p>TF motif mapping<\/p>\n<p>We downloaded FIMO PWM scan results from <a href=\"http:\/\/www.yeastss.org\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/www.yeastss.org<\/a> (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 55\" title=\"Grant, C. E., Bailey, T. L. &amp; Noble, W. S. FIMO: scanning for occurrences of a given motif. Bioinformatics 27, 1017&#x2013;1018 (2011).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR55\" id=\"ref-link-section-d90873645e3281\" rel=\"nofollow noopener\" target=\"_blank\">55<\/a>) and Chip-Exo TF binding peaks from <a href=\"http:\/\/www.yeastepigenome.org\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/www.yeastepigenome.org<\/a> (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 31\" title=\"Rossi, M. J. et al. A high-resolution protein architecture of the budding yeast genome. Nature 592, 309&#x2013;314 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR31\" id=\"ref-link-section-d90873645e3292\" rel=\"nofollow noopener\" target=\"_blank\">31<\/a>). We then extracted all Chip-Exo peaks for the available PWMs. We excluded PWM matches for which no Chip-Exo data were available for the corresponding factor. This procedure yielded data for 68 TFs. We annotated every nucleotide within 1\u2009kb 5\u2032 of a start codon as part of a binding TF motif if it is (1) part of a PWM match with P value of &lt;0.01 and (2) this PWM match is within ten bases of a Chip-Exo peak of the corresponding TF. We defined the positive class in this way to ensure that we capture nucleotides relevant for determining binding (that is, motif) rather than all nucleotides close to a Chip-Exo peak, regardless of their role in binding. This resulted in 92,117 binding nucleotides out of a total of 6,538,427. We designated a nucleotide as repeat if it was masked by RepeatMasker. We extracted this information from the soft-masked GTF provided by Ensembl<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Martin, F. J. et al. Ensembl 2023. Nucleic Acids Res. 51, D933&#x2013;D941 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR36\" id=\"ref-link-section-d90873645e3300\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>.<\/p>\n<p>The 69-way alignment<\/p>\n<p>We used progressive cactus<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 56\" title=\"Armstrong, J. et al. Progressive Cactus is a multiple-genome aligner for the thousand-genome era. Nature 587, 246&#x2013;251 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR56\" id=\"ref-link-section-d90873645e3312\" rel=\"nofollow noopener\" target=\"_blank\">56<\/a> to align 69 budding yeast species using default parameters and specifying S. cerevisiae as reference quality genome. We then extracted fourfold degenerate sites and used phyloFit with the EM algorithm to estimate a neutral model. Using this neutral model and the alignment, we ran phastCons with the parameters &#8211;rho 0.3 &#8211;estimate-rho &#8211;target-coverage 0.4 &#8211;expected-length 23, which correspond to the parameters used in the seven-way alignment<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 21\" title=\"Siepel, A. et al. Evolutionarily conserved elements in vertebrate, insect, worm, and yeast genomes. Genome Res 15, 1034&#x2013;1050 (2005).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR21\" id=\"ref-link-section-d90873645e3319\" rel=\"nofollow noopener\" target=\"_blank\">21<\/a>. We also ran phyloP<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 22\" title=\"Pollard, K. S., Hubisz, M. J., Rosenbloom, K. R. &amp; Siepel, A. Detection of nonneutral substitution rates on mammalian phylogenies. Genome Res 20, 110&#x2013;121 (2010).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR22\" id=\"ref-link-section-d90873645e3323\" rel=\"nofollow noopener\" target=\"_blank\">22<\/a>, with &#8211;method LRT &#8211;mode CONACC.<\/p>\n<p>Dependencies in rare-variant-associated aberrant splicing<\/p>\n<p>We computed dependency maps for all rare SNVs associated with splicing outliers in GTEx<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"Aguet, F. et al. Genetic effects on gene expression across human tissues. Nature 550, 204&#x2013;213 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR28\" id=\"ref-link-section-d90873645e3335\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a> as described earlier<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 32\" title=\"Wagner, N. et al. Aberrant splicing prediction across human tissues. Nat. Genet. 55, 861&#x2013;870 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR32\" id=\"ref-link-section-d90873645e3339\" rel=\"nofollow noopener\" target=\"_blank\">32<\/a>. Because the input length of SpliceBert<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 14\" title=\"Chen, K. et al. Self-supervised learning on millions of primary RNA sequences from 72 vertebrates improves sequence-based RNA splicing prediction. Brief. Bioinform. 25, bbae163 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR14\" id=\"ref-link-section-d90873645e3343\" rel=\"nofollow noopener\" target=\"_blank\">14<\/a> is limited to 1,024\u2009bp, the complete set of variant outlier pairs (n\u2009=\u200918,371) was filtered such that the variant and associated outlier junction were located within an 800-bp window (n\u2009=\u20091,811) and 100\u2009bp of sequence was added from the maximum and minimum positions of the variant and outlier junction splice sites. For each variant location, we extracted the average value of the dependency map at the intersection of either variant and outlier donor dinucleotide or variant and outlier acceptor dinucleotide. This variant effect score was compared against a background score. This background score was computed as the mean over all dependencies that were as distant from each other as the variant was from the outlier donor (matched distance) or the outlier acceptor. The scores were filtered for a minimum distance of 5\u2009bp between the variant and splicing dinucleotide to filter values near the diagonal corresponding to self-interactions. Variant categories were annotated with the Ensembl variant effect predictor (VEP)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"McLaren, W. et al. The Ensembl Variant Effect Predictor. Genome Biol 17, 122 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR57\" id=\"ref-link-section-d90873645e3354\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>. For each variant, the most severe VEP annotation was considered. For the \u2018exon\u2019 category, the following VEP categories were grouped together: synonymous_variant, missense_variant, stop_lost, stop_gained.<\/p>\n<p>Genome-wide search for parallel and antiparallel dependencies<\/p>\n<p>We scanned dependency maps for parallel and antiparallel dependencies using 5\u2009\u00d7\u20095 convolutional filters. We constructed the antiparallel filter by populating the antidiagonal of a zero-filled 5\u2009\u00d7\u20095 matrix with ones, and for the parallel filter, by populating the diagonal with ones. We then centered each filter by subtracting the mean value from each position to ensure that a convolution on a uniform 5\u2009\u00d7\u20095 region yields a result of zero. We applied these filters to dependency maps from SpeciesLM fungi (both filters) and RiNALMo (antiparallel filter only)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 4\" title=\"Karollus, A. et al. Species-aware DNA language models capture regulatory elements and their evolution. Genome Biol 25, 83 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR4\" id=\"ref-link-section-d90873645e3367\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 7\" title=\"Peni&#x107;, R. J., Vla&#x161;i&#x107;, T., Huber, R. G., Wan, Y. &amp; &#x160;iki&#x107;, M. RiNALMo: general-purpose RNA language models can generalize well on structure prediction tasks. Nat. Commun. 16, 5671 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR7\" id=\"ref-link-section-d90873645e3370\" rel=\"nofollow noopener\" target=\"_blank\">7<\/a>.<\/p>\n<p>Search for parallel and antiparallel dependencies in fungi using the SpeciesLM fungi<\/p>\n<p>For the SpeciesLM fungi, we have computed dependency maps spanning 1\u2009kb 5\u2032 of each annotated start codon on a set of representative fungi species, including Agaricus bisporus, Candida albicans, Debaryomyces hansenii, Kluyveromyces lactis, Neurospora crassa, S. cerevisiae, S. pombe and Yarrowia lipolytica. The genomes and annotation files for each species were downloaded from EnsemblFungi release 53 with accessions <a href=\"https:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_000300555.1\" rel=\"nofollow noopener\" target=\"_blank\">GCA_000300555.1<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA000182965v3\" rel=\"nofollow noopener\" target=\"_blank\">GCA000182965v3<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_000006445.2\" rel=\"nofollow noopener\" target=\"_blank\">GCA_000006445.2<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA000002515.1\" rel=\"nofollow noopener\" target=\"_blank\">GCA000002515.1<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_000182925.2\" rel=\"nofollow noopener\" target=\"_blank\">GCA_000182925.2<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_003046715.1\" rel=\"nofollow noopener\" target=\"_blank\">GCA_003046715.1<\/a>, <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_000002945.2\" rel=\"nofollow noopener\" target=\"_blank\">GCA_000002945.2<\/a> and <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/assembly\/GCA_000002525.1\" rel=\"nofollow noopener\" target=\"_blank\">GCA_000002525.1<\/a>, respectively.<\/p>\n<p>All regions annotated as \u2018five_prime_utr\u2019, \u2018three_prime_utr\u2019, \u2018intron\u2019, \u2018CDS\u2019, \u2018pseudogene_with_CDS\u2019 and other regions (for example, nonannotated introns) inside an annotated gene interval were categorized as protein-coding gene. All regions annotated as \u2018tRNA\u2019, \u2018tRNA_pseudogene\u2019, \u2018rRNA\u2019, \u2018snRNA\u2019, \u2018ribozyme\u2019, \u2018SRP_RNA\u2019, \u2018snoRNA\u2019, \u2018RNase_P_RNA\u2019 and \u2018RNase_MRP_RNA\u2019 were categorized as structured RNA. Finally, all regions annotated as \u2018transposable_element\u2019, \u2018pseudogene\u2019 and regions without any annotation were considered as intergenic.<\/p>\n<p>Search for antiparallel dependencies and RNA structure in E. coli using RiNALMo<\/p>\n<p>For RiNALMo, we computed dependency maps for regions 100, 200 and 500\u2009bp before each annotated start codon in E. coli str. K-12 substr. MG1655, whose genome and annotation were downloaded from GenBank<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 58\" title=\"Sayers, E. W. et al. GenBank. Nucleic Acids Res 49, D92&#x2013;D96 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR58\" id=\"ref-link-section-d90873645e3482\" rel=\"nofollow noopener\" target=\"_blank\">58<\/a> with accession <a href=\"https:\/\/www.ncbi.nlm.nih.gov\/nuccore\/U00096.3\" rel=\"nofollow noopener\" target=\"_blank\">U00096.3<\/a>.<\/p>\n<p>As candidates for a new RNA structure, we first filtered positions whose convolution value is greater or equal to 25 to select only high-value antiparallel dependencies, resulting in a filtered convolved dependency map. Next, we counted the unique number of antidiagonals potentially belonging to one stem by extracting the unique i + j nonzero positions supported by at least three nonzero values.<\/p>\n<p>As candidates for a new structure, we selected maps suggesting the existence of at least two potential stems.<\/p>\n<p>RNA secondary structure benchmarking<\/p>\n<p>We downloaded the database of secondary structures Archive II<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 37\" title=\"Mathews, D. H. How to benchmark RNA secondary structure prediction accuracy. Methods 162&#x2013;163, 60&#x2013;67 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR37\" id=\"ref-link-section-d90873645e3513\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a>, which includes 3,865 curated RNA structures across nine families (5S rRNA, SRP RNA, tRNA, tmRNA, RNase P RNA, group I intron, 16S rRNA, telomerase RNA and 23S rRNA). For each structure, we generated the dependency map with the pretrained RiNALMo and retained the largest of the two dependency map entries for each pair of nucleotides (maximum of i,j and j,i). The AUROC curve was computed for each structure against the Archive II secondary structure annotations.<\/p>\n<p>Benchmarking of canonical and noncanonical RNA contacts<\/p>\n<p>We downloaded the database of RNA structures CompaRNA<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 38\" title=\"Puton, T., Kozlowski, L. P., Rother, K. M. &amp; Bujnicki, J. M. CompaRNA: a server for continuous benchmarking of automated methods for RNA secondary structure prediction. Nucleic Acids Res 41, 4307&#x2013;4323 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR38\" id=\"ref-link-section-d90873645e3537\" rel=\"nofollow noopener\" target=\"_blank\">38<\/a>, which is a compilation of RNA contacts based on 201 available RNA structures in the Protein Data Bank by RNAView<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 59\" title=\"Yang, H. et al. Tools for the automatic identification and classification of RNA base pairs. Nucleic Acids Res 31, 3450&#x2013;3460 (2003).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR59\" id=\"ref-link-section-d90873645e3541\" rel=\"nofollow noopener\" target=\"_blank\">59<\/a>. Contacts are classified either as \u2018standard\u2019 or as \u2018extended\u2019. While the first includes only canonical AU, GC and wobble GU pairs in the cis-Watson\u2013Crick\/Watson\u2013Crick conformation<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 60\" title=\"Leontis, N. B. &amp; Westhof, E. Geometric nomenclature and classification of RNA base pairs. RNA 7, 499&#x2013;512 (2001).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR60\" id=\"ref-link-section-d90873645e3548\" rel=\"nofollow noopener\" target=\"_blank\">60<\/a>, the latter calls all interacting bases regardless of their conformation, including noncanonical or tertiary contacts. Of the 201 structures, 196 had a length below the maximum input length of RiNALMo (1,022 nt). For each structure, we generated the dependency map using the pretrained RiNALMo and retained the largest entry from the two dependency maps for each pair of nucleotides. Similarly, the same structures were also evaluated with the fine-tuned RiNALMo model version rinalmo_giga_ss_bprna_ft, resulting in a predicted value for each pair of nucleotides. To evaluate their performance in predicting noncanonical contacts, we excluded all canonical contacts and computed the AUROC curve for all remaining positions across all structures. Significance between ROC AUCs was determined by bootstrapping over 10,000 permutations.<\/p>\n<p>Comparison with RNAalifold<\/p>\n<p>We evaluated the performance of the dependency maps against RNAalifold<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 61\" title=\"Bernhart, S. H., Hofacker, I. L., Will, S., Gruber, A. R. &amp; Stadler, P. F. RNAalifold: improved consensus structure prediction for RNA alignments. BMC Bioinformatics 9, 474 (2008).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR61\" id=\"ref-link-section-d90873645e3560\" rel=\"nofollow noopener\" target=\"_blank\">61<\/a>, a standard alignment-based method for predicting a consensus RNA structure by incorporating sequence covariation from a set of aligned RNA sequences as input. For this, we use the 201 PDB entries in CompaRNA that had at least one Rfam match and consider two subsets. The first subset consisted of the 33 PDB sequences that contained an exact sequence match between the PDB entry and at least one Rfam seed alignment. In case of multiple matching Rfam seed alignments (for example, ribosomal RNA), we considered an arbitrarily chosen single Rfam seed alignment to avoid confounding the evaluations by duplicates. The second subset consisted of the remaining 168 sequences. For this, we used nhmmer (v3.1b2)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 62\" title=\"Wheeler, T. J. &amp; Eddy, S. R. nhmmer: DNA homology search with profile HMMs. Bioinformatics 29, 2487&#x2013;2489 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR62\" id=\"ref-link-section-d90873645e3564\" rel=\"nofollow noopener\" target=\"_blank\">62<\/a> to find homologous sequences within a database of 220,478 bacterial and archaeal genomes and plasmids downloaded from NCBI. After removing sequences longer than 1,022 nt (the maximum context length for which the gLM RiNALMo has been trained), this resulted in 67 sequences with hits in the database.<\/p>\n<p>On the first subset, we use the Rfam seed alignments as input to RNAalifold. To assess the robustness of the analyses to the alignment procedure, we additionally realigned the sequences in the seed alignments using Clustal-Omega (v1.2.4)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 63\" title=\"Sievers, F. et al. Fast, scalable generation of high-quality protein multiple sequence alignments using Clustal Omega. Mol. Syst. Biol. 7, 539 (2011).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR63\" id=\"ref-link-section-d90873645e3571\" rel=\"nofollow noopener\" target=\"_blank\">63<\/a> and MAFFT (v7.525)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 64\" title=\"Katoh, K. &amp; Standley, D. M. MAFFT multiple sequence alignment software version 7: improvements in performance and usability. Mol. Biol. Evol. 30, 772&#x2013;780 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR64\" id=\"ref-link-section-d90873645e3575\" rel=\"nofollow noopener\" target=\"_blank\">64<\/a>. For the second subset, we performed sequence alignments using both Clustal-Omega and MAFFT, limiting the alignments to a maximum of 1,000 sequences (by aligning the PDB sequence to the top 999 nhmmer hits) to reduce computation time. On both subsets and from each alignment, a base-pair probability matrix corresponding to the predicted RNA structure was generated using RNAalifold available through the ViennaRNA (v2.6.4) package<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Lorenz, R. et al. ViennaRNA package 2.0. Algorithms Mol. Biol. 6, 26 (2011).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR65\" id=\"ref-link-section-d90873645e3579\" rel=\"nofollow noopener\" target=\"_blank\">65<\/a>. RNAalifold was run in the following two modes: using the default energy model (command: RNAalifold -p) and with RIBOSUM scoring (command: RNAalifold -p -r).<\/p>\n<p>Pseudoknot benchmark<\/p>\n<p>We downloaded the compendium dataset bpRNA-1m(90) that contains 28,370 annotated RNA structures with less than 90% sequence similarity obtained from the databases CRW, tmRNA, SRP, tRNAdb2009, RNP, RFAM and PDB<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 39\" title=\"Danaee, P. et al. bpRNA: large-scale automated annotation and analysis of RNA secondary structure. Nucleic Acids Res 46, 5381&#x2013;5394 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR39\" id=\"ref-link-section-d90873645e3592\" rel=\"nofollow noopener\" target=\"_blank\">39<\/a>. From these, we extracted all structures that contain pseudoknot contacts and are no longer than 1,022 nt (the maximum context length for which the gLM RiNALMo has been trained). These resulted in 2,530 structures of varying lengths and sources. We then extracted the pseudoknot contacts from the dot-bracket notation provided by bpRNA that takes into account non-nested pairs<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 39\" title=\"Danaee, P. et al. bpRNA: large-scale automated annotation and analysis of RNA secondary structure. Nucleic Acids Res 46, 5381&#x2013;5394 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR39\" id=\"ref-link-section-d90873645e3596\" rel=\"nofollow noopener\" target=\"_blank\">39<\/a>. Finally, we computed the dependency maps for each one of these structures and evaluated their ability to predict whether a pair of nucleotides belongs to a pseudoknot contact (positive set) or does not belong to a structure contact (pseudoknot or canonical structure contact\u2014negative set).<\/p>\n<p>DMS-MaPseq analysis of E. coli cells<\/p>\n<p>E. coli TOP10 cells were grown in LB broth at 37\u2009\u00b0C with shaking until OD600\u2009=\u20090.5, after which dimethyl sulfate (DMS; Sigma-Aldrich, D186309), prediluted 1:4 in ethanol, was added to a final concentration of 200\u2009mM. Bacteria were incubated for 2\u2009min at 37\u2009\u00b0C, and reaction was quenched by addition of 0.5\u2009M final DTT. Bacteria were pelleted by centrifugation at 17,000g for 1\u2009min at 4\u2009\u00b0C, after which they were resuspended in cell pellets in 12.5-\u03bcl resuspension buffer (20\u2009mM Tris\u2013HCl pH 8.0; 80\u2009mM NaCl; 10\u2009mM EDTA pH 8.0), supplemented with 100\u2009\u03bcg\u2009ml\u22121 final lysozyme (L6876, Merck) and 20 U SUPERase\u00b7In RNase Inhibitor (Thermo Fisher Scientific, A2696), by vortexing. After 1\u2009min, 12.5-\u03bcl lysis buffer (0.5% Tween-20; 0.4% sodium deoxycholate; 2\u2009M NaCl; 10\u2009mM EDTA) were added, and samples were incubated at room temperature for 2 additional min. Then 1\u2009ml TRIzol Reagent (Thermo Fisher Scientific, 15596018) was added, and RNA extracted as per the manufacturer\u2019s instructions. rRNA depletion was performed on 1\u2009\u03bcg total RNA using the RiboCop for Bacteria kit (Lexogen, 126). DMS-MaPseq library preparation was performed as previously described<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 41\" title=\"Zubradt, M. et al. DMS-MaPseq for genome-wide or targeted RNA structure probing in vivo. Nat. Methods 14, 75&#x2013;82 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR41\" id=\"ref-link-section-d90873645e3621\" rel=\"nofollow noopener\" target=\"_blank\">41<\/a>. After sequencing, reads were aligned to the E. coli str. K-12 substr. MG1655 genome (GenBank, <a href=\"https:\/\/www.ncbi.nlm.nih.gov\/nuccore\/U00096.3\" rel=\"nofollow noopener\" target=\"_blank\">U00096.3<\/a>), using the rf-map module of the RNA framework<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Incarnato, D., Morandi, E., Simon, L. M. &amp; Oliviero, S. RNA framework: an all-in-one toolkit for the analysis of RNA structures and post-transcriptional modifications. Nucleic Acids Res 46, e97 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR66\" id=\"ref-link-section-d90873645e3636\" rel=\"nofollow noopener\" target=\"_blank\">66<\/a> and Bowtie2 (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Langmead, B. &amp; Salzberg, S. L. Fast gapped-read alignment with Bowtie 2. Nat. Methods 9, 357&#x2013;359 (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR67\" id=\"ref-link-section-d90873645e3640\" rel=\"nofollow noopener\" target=\"_blank\">67<\/a>). Count of DMS-induced mutations and coverage and reactivity normalization were performed using the rf-count-genome and rf-norm modules of the RNA framework. Experimentally informed structure modeling was performed using the rf-fold module of the RNA framework and ViennaRNA (v2.5.1)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Langmead, B. &amp; Salzberg, S. L. Fast gapped-read alignment with Bowtie 2. Nat. Methods 9, 357&#x2013;359 (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR67\" id=\"ref-link-section-d90873645e3644\" rel=\"nofollow noopener\" target=\"_blank\">67<\/a>.<\/p>\n<p>RNA structure covariation analysis<\/p>\n<p>Covariation analysis was performed using the cm-builder pipeline (<a href=\"http:\/\/github.com\/dincarnato\/labtools\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/dincarnato\/labtools<\/a>) and a nonredundant database of 7,598 representative archaeal and bacterial genomes (and associated plasmids, when present) from RefSeq<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 68\" title=\"Manfredonia, I. et al. Genome-wide mapping of SARS-CoV-2 RNA structures identifies therapeutically-relevant elements. Nucleic Acids Res 48, 12436&#x2013;12452 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR68\" id=\"ref-link-section-d90873645e3663\" rel=\"nofollow noopener\" target=\"_blank\">68<\/a>.<\/p>\n<p>Evaluation of artificial forward and inverted duplications<\/p>\n<p>We generated random sequences of 100 nucleotides by sampling from regions 1\u2009kb 5\u2032 of the start codon in S. cerevisiae to ensure a representative GC content and shuffling the sequences to destroy potential functional elements. Additionally, we created 100 unique duplicated sequences, ranging from 2 to 20 nucleotides in length, by randomly sampling each nucleotide with equal probability. Each duplicated sequence was then inserted into a uniquely generated 100-nucleotide sequence at a random distance from each other, ensuring no overlaps occurred. We used the SpeciesLM fungi to generate dependency maps for each sequence. We then computed average dependencies by taking the mean of the dependencies between nucleotides and their duplicates. This involved averaging across a parallel diagonal for forward duplications and an antiparallel diagonal for inverted duplications.<\/p>\n<p>For tRNA-sized sequences, we followed a similar method but generated each sequence by shuffling each unique tRNA sequence in S. cerevisiae once. We computed the average number of inverted duplications by averaging the occurrences of duplicated sequences of specific lengths across 10,000 shuffled versions of each tRNA sequence.<\/p>\n<p>Genome-wide analysis of dependency distribution<\/p>\n<p>Using the SpeciesLM fungi, we computed dependency maps across the genomes of S. cerevisiae and S. pombe. Because the SpeciesLM fungi was pretrained on sequences of 1,003 nucleotides, including the start codon at the end, we discarded dependencies involving the last three nucleotides of each sequence, yielding dependencies for 1,000 nucleotides. Genome-wide dependency maps of 1-kb span were obtained with a tiling approach. Along each chromosome, we computed 1-kb square dependency maps every 500\u2009bp and averaged overlapping entries.<\/p>\n<p>To ensure that the same number of targets is computed before and after a specific query nucleotide, we considered dependencies involving nucleotides at most 500 positions away from each other. For each map, we sampled 1,000 dependencies and averaged dependencies mapping to the same genomic positions but computed from different overlapping maps. Due to limitations in numerical precision, we considered only dependencies larger than 0.001.<\/p>\n<p>To compute the power\u2013law coefficients, a linear regression was fitted to predict the logarithm of the dependency from the logarithm of its corresponding distance in nucleotides. The scaling coefficient was then obtained by exponentiating the fitted intercept of the linear regression, and the decay rate was obtained directly from the fitted slope. The scaling coefficient and decay rate were computed for different regions in the genome which are as follows: (1) nuclear\u2014involving all dependencies belonging to nuclear DNA; (2) mitochondria\u2014involving all dependencies within mitochondrial DNA; (3) structured RNA\u2014belonging to the annotations \u2018tRNA\u2019, \u2018tRNA_pseudogene\u2019, \u2018rRNA\u2019, \u2018snRNA\u2019, \u2018ribozyme\u2019, \u2018SRP_RNA\u2019, \u2018snoRNA\u2019, \u2018RNase_P_RNA\u2019 or \u2018RNase_MRP_RNA\u2019; (4) protein-coding gene\u2014belonging to the annotations \u2018five_prime_utr\u2019, \u2018three_prime_utr\u2019, \u2018CDS\u2019 or \u2018pseudogene_with_CDS\u2019; (5) intron\u2014belonging to the regions inside an annotated gene interval but not to exons and (6) intergenic\u2014belonging to all regions annotated as \u2018transposable_element\u2019, \u2018pseudogene\u2019, as well as regions without any annotation.<\/p>\n<p>Model comparison<\/p>\n<p>All other models used were downloaded from Huggingface or from their publicly available repositories. Human tRNA sequences were downloaded from GtRNAdb<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 54\" title=\"Chan, P. P. &amp; Lowe, T. M. GtRNAdb: a database of transfer RNA genes detected in genomic sequence. Nucleic Acids Res 37, D93&#x2013;D97 (2009).\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#ref-CR54\" id=\"ref-link-section-d90873645e3712\" rel=\"nofollow noopener\" target=\"_blank\">54<\/a>. Exact duplicate sequences were removed, leaving 266 tRNAs.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41588-025-02347-3#MOESM2\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"SpeciesLM training For SpeciesLM metazoa, we obtained metazoan genomes comprising 494 different species from the Ensembl 110 database36.&hellip;\n","protected":false},"author":2,"featured_media":191542,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[5083,5085,3251,5082,23203,5084,3250,916,5081,10394,90,56,54,55],"class_list":["post-191541","post","type-post","status-publish","format-standard","has-post-thumbnail","category-genetics","tag-agriculture","tag-animal-genetics-and-genomics","tag-biomedicine","tag-cancer-research","tag-computational-biology-and-bioinformatics","tag-gene-function","tag-general","tag-genetics","tag-human-genetics","tag-molecular-biology","tag-science","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/191541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=191541"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/191541\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/191542"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=191541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=191541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=191541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}