Dark Mode Light Mode
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.
Chemistry, medicine, materials and the technology shaping tomorrow — the best science stories from trusted sources, every day.

Expanding the lexicon of composite elements in the gene regulatory code

Expanding the lexicon of composite elements in the gene regulatory code Expanding the lexicon of composite elements in the gene regulatory code


CEseek motif analysis

The CEseek pipeline was developed to systematically identify and analyse CEs within cis-regulatory DNA regions by leveraging position probability matrices (PPMs) to scan genomic sequences for TF-motif hits. Through pairwise motif scanning, CEseek evaluates combinations of all four motif orientations and user-defined spacing intervals, detecting motif co-occurrence patterns suggestive of potential cooperative or antagonistic interactions. Motif hits were identified using a PWM score threshold of at least 80% of the maximum possible score for the corresponding motif. Only motif hits exceeding this threshold were considered for subsequent CE analysis. Aligned motif hits, including spacer regions, are extracted and used to construct PPMs for the resulting CEs. By quantifying all possible binary configurations for user-defined spacing intervals, CEseek identifies dominant configurations exhibiting orientation and spacing preferences. Statistical enrichment of CEs is assessed via one-sided Fisher’s exact test (alternative = greater), which compares motif pair frequencies in a test set against those in an appropriate background set (dinucleotide-shuffled sequences or other genomic sequences). For each CE configuration, each OCR was treated as a binary observation, indicating the presence or absence of at least one motif pair with the specified orientation and spacing. Multiple occurrences of the same configuration within an OCR were counted only once. One-sided Fisher’s exact test (alternative = greater) was then applied to compare the numbers of OCRs containing the configuration in the foreground and background sequence set. A chi-squared test is also implemented as an alternative in CEseek. Comparisons show strong agreement between the two approaches, with a Spearman correlation of 0.99 between the significance rankings obtained from one-sided Fisher’s exact test (alternative = greater) and the chi-squared test.

CEseek was implemented using Python programming language and incorporates several specialized libraries, including PyTorch for efficient tensor operations and computations, pybedtools45,46 for genomic interval manipulation, and pandas for data management and processing. The integration of GPU acceleration through PyTorch substantially enhances computational performance during motif scanning and sequence analyses. The CEseek tool is publicly available at https://github.com/Jingyu-Fan/CEseek. An archived version implemented in R is accessible at https://github.com/viren-v/CEseek.

Core simple motif collection

A comprehensive library of TF motifs was compiled for systematic CEseek analysis. Initial collections of mouse and human TF motifs were obtained from the CIS-BP6 database (build 2.00). A similarity matrix for all PWMs was generated using the HOMER47 function compareMotifs.pl with the -matrix option. For TFs represented by multiple PWMs, a minimal spanning tree was constructed using the similarity matrix, with PWMs as nodes. The PWM with the highest number of connections was selected as representative, and redundant PWMs were removed. In cases of ties, the PWM with the highest information content was retained. For PWMs from different TFs with a similarity score >0.9, a single representative PWM (with the highest information content) was selected. To ensure coverage, the CIS-BP collection was supplemented with curated TF motifs from the HOMER47 vertebrate motif library (http://homer.ucsd.edu/homer/motif/HomerMotifDB/homerResults.html), representing core (monomeric) binding sequences derived from ChIP–seq data. The combined motif set was manually curated to remove highly similar entries, resulting in a final library of 153 non-redundant simple TF motifs (Supplementary Data 1). See Supplementary Note 1 for comparison of this core simple motif set to JASPAR 2024 CORE Vertebrates collection.

cCEs in the ImmGen atlas

Chromatin accessibility data generated by the ImmGen24 consortium, which includes ATAC–seq profiles for 86 immune and haematopoietic cell types or states along with 4 non-haematopoietic cell types, were utilized for systematic CEseek analysis. The dataset comprises 512,595 OCRs, each of which is extended on both sides, yielding standardized 180-bp regulatory regions. Importantly, the ImmGen ATAC–seq dataset was preprocessed using standard pipelines that include repeat masking, thereby minimizing potential contributions of repetitive elements (for example, LINEs) to motif co-occurrence signals. CEseek was used to scan these OCR sequences systematically, evaluating all possible pairwise motif combinations derived from the library of 153 core TF motifs, with spacer lengths ranging from −5 to +10 base pairs. Each OCR was subsequently assigned to specific cell types or states based on its accessibility, defined as peaks falling within the 95th percentile for that particular cell type or state relative to others in the ImmGen dataset. One-sided Fisher’s exact test (alternative = greater) was used to identify CE configurations that were statistically enriched in cell type- or state-specific OCRs, and the remaining OCRs were used as a background set (enrichment significance threshold P < 10−20). Additionally, an independent analysis using scrambled sequences as a control further validated the prevalence of cCEs, identifying 22,698 significantly enriched cCEs (P < 10−10). Finally, dominant configurations characterized by preferential spacing and orientation between paired motifs were selected (significant motif pairs with ≤6 enriched configurations out of a possible of 64), resulting in 5,063 high-confidence cCEs. Corresponding PPMs for these selected cCEs were subsequently generated using aligned motif hits identified across the entire ImmGen OCR dataset. See Supplementary Note 2 for details.

TF-motif MPRA library design

A MPRA library comprising simple TF motifs and CEs was designed to enable comprehensive, systematic evaluation of motif activities in vivo. This library consisted of 60,714 sequences, each 30 bp in length. Initially, the set of 5,063 cCEs was scanned across ImmGen ATAC–seq peaks, and the top 10 motif hits with the highest scores for each cCE were selected. These selected hits were subsequently extended to uniform length 30 bp sequences. The sequences assigned to multiple cCEs were removed, resulting in a refined set of 3,795 unique cCEs. For each of these CEs, up to four highest-scoring sequences were retained, and three additional mutated variants were systematically generated: one variant with mutations introduced into the left motif, another with mutations in the right motif, and a third variant with mutations in both motifs. Mutations involved substitutions at two consecutive positions of highest information content, converting nucleotide A to C and T to G, and vice versa. This strategy allowed for precise quantification of individual motif contributions within cCEs. Additionally, the MPRA library included 153 core simple motifs recognized by vertebrate TFs. For each simple motif, genomic sequences precisely matching motif length were identified and extended with selected random sequences to prevent unintended creation of alternative motifs. Up to 20 distinct sequences were selected for each simple motif based on their highest motif scores, alongside corresponding mutated sequences with substitutions at two consecutive positions of maximal information content. As controls, the library also contained 1,000 randomly generated 30 bp sequences without any recognizable motifs, serving as baseline measurements of background activity. To generate the 1,000 random 30 bp control sequences, we used an iterative filtering strategy. Specifically, each candidate 30-mer was randomly generated and then scanned against our curated set of 153 core TF motifs. Only sequences with no detectable motif matches were retained. This process was repeated until 1,000 motif-free sequences were collected. See Supplementary Note 3 for details.

TF-motif MPRA library construction

The TF-motif library sequences were cloned into the pGL4:23:∆luc∆xbaI vector as described previously14 with modifications. To create the mpra∆orf library, barcoded oligonucleotides were inserted into SfiI-digested pGL4:23:∆luc∆xbaI by Gibson assembly (New England Biolabs, E2611) via the use of 1.1 µg of oligonucleotides and 1 µg of digested vector in a 50 µl reaction mixture and incubated for 60 min at 50 °C. The reaction mixture was purified with 1.2× SPRI and eluted in 20 µl of elution buffer. Test transformation was performed to determine library coverage via the electroporation of 1 µl of ligated vector into 50 µl of electrocompetent 10-beta Escherichia coli (NEB, C3020K) (2 kV, 200 ohm, 25 µF). Similarly, for the scaled-up transformation, 1 µl of the library was transformed into 50 µl of electrocompetent cells. The electroporated cells were recovered in 950 µl of SOC medium and then split into ten 1 ml aliquots of SOC. These cultures were subsequently recovered for 1 h at 37 °C, after which each culture was individually expanded in 20 ml of LB supplemented with 100 μg ml−1 carbenicillin (Sigma Aldrich, C1389) in a shaker at 37 °C for 6.5 h. After incubation, all the cultures were pooled, and plasmid isolation was performed (Qiagen, 12963). To validate library complexity and connect barcodes to CE sequences, Illumina libraries were prepared for the mpra:∆orf library as described previously48 and sequenced via 2× 150 PE reads on the Illumina NovaSeq platform with 15% PhiX spike-in. To create the final mpra:gfp library, 10 µg of mpra:∆orf library plasmid was linearized with 100 units of AsiSI (NEB, R0630) in a final 400 µl reaction and incubated overnight at 37 °C. The linearized product was then column purified (Qiagen, 28104) and eluted in 30 µl. The GFP amplicon was amplified from pMPRAv3:minP-GFP via Q5 NEBNEXT Hot-Start (New England Biolabs M0494), 0.5 µM primer 200 and 0.5 µM primer 201 (Supplementary Data 16), following cycle conditions of 98 °C for 30 s, 20 cycles (98 °C for 10 s, 60 °C for 15 s, 72 °C for 45 s), and 72 °C for 5 min. The amplified product was incubated with Dpn1 for 30 min at 37 °C, followed by 0.5× reverse SPRI and 1.5× forward SPRI purification and elution in 40 µl EB. A second PCR was then performed using the 1:100 diluted purified PCR1 GFP amplicon as PCR1 and then column purified. This amplicon containing a minimal promoter, a GFP open reading frame and a partial 3’ UTR was then inserted by Gibson assembly using 1.6 µg of AsiSI-linearized mpra∆orf plasmid and 5.28 µg of the GFP amplicon in a 400 µl reaction for 90 min at 50 °C, followed by 1.5× SPRI purification. The total recovered volume was redigested to remove the remaining uncut vectors by incubation with 50 units of AsiSI, 5 units of RecBCD (New England Biolabs, M0345), 10 µg of BSA, 1 mM ATP, and 1× NEB Buffer 4 in a 100-µl reaction mixture incubated overnight at 37 °C, followed by 1.5× SPRI purification and elution with 40 µl of EB. To generate the final transfection-ready MPRA library, a test transformation was first performed using 1 µl of the final eluted mpra:gfp plasmid library and 50 µl of 10-beta cells to determine the library coverage. Finally, for scale-up transformation, 8 µl of mpra:gfp plasmid was electroporated (2 kV, 200 ohm, 25 µF) into 200 µl of 10-beta cells. The electroporated bacteria were recovered in 12 ml of SOC, split across 6, 2 ml aliquots and incubated for 1 h at 37 °C. Then, each 2 ml culture was expanded to 500 ml of LB with 100 µg ml−1 carbenicillin and incubated for 16 h at 37 °C, followed by plasmid isolation via the Qiagen Gigaprep Kit (Qiagen, 12991).

Cell culture and transfection

GM12878 cells (female donor; Coriell Institute for Medical Research) were cultured in RPMI medium (Corning, 10-040-CV) supplemented with 15% FBS (Gibco A52568-01), 1% GlutaMAX (Gibco 35050-061) and 1% Pen-Strep (Corning, 30-002-CI). For each transfection, 1 × 107 cells were mixed with 10 μg of the TF-motif MPRA library in 100 μl of RPMI. These cells were transfected with a Neon transfection system (Thermo Fisher Scientific, MPK5000) using a kit (MPK10096B) with 3 pulses of 1200 V for 20 ms. A total of five biological replicates were performed, each using cells at a density of ~1 million cells per ml for the transfections. For each replicate, a total of 1.5 × 108 cells were pelleted at 200g and resuspended in 1.5 ml of RPMI medium containing 150 μg of the TF-motif library. After transfection, each replicate was recovered at a density of 5 × 105 cells per ml in 300 ml of RPMI medium containing 15% FBS, 1% GlutaMAX and 1% Pen-Strep. After 24 h, the cells were pelleted at 200g and washed once with PBS. The cells were resuspended in 15 ml of RLT buffer provided with Qiagen Maxi RNeasy (Qiagen, 75162) and 300 mM DTT (G-Biosciences, 786227). The cells were then homogenized with a tissue homogenizer, TH (OMNI international), for 1 min at maximum speed and the lysates stored at –80 °C. Jurkat T cells (male donor; ATCC) were cultured in RPMI medium (Gibco 61870-036) supplemented with 10% FBS (Gibco A52568-01) and 1% Pen-Strep (Corning, 30-002-CI). All other steps were the same as for GM12878 cells with the exception that the transfections using the Neon system involved 3 pulses of 1550 V for 10 ms.

K562 cells (female donor; ATCC) were cultured in Iscove’s modified Dulbecco’s medium (Corning 10-016-CV) supplemented with 10% FBS and 1% Pen-Strep. For each transfection, 1 × 107 cells were mixed with 5 μg of the MPRA library in 100 μl of RPMI and transfected with the Neon transfection system using a kit with three pulses of 1,450 V for 10 ms. Six independent biological replicates were performed. For each replicate, a total of 1.5 × 108 cells were pelleted at 200g and resuspended in 1.5 ml of buffer R provided in the Neon Transfection Kit containing 150 μg of the TF-motif library. After transfection, each replicate was recovered at a density of 5 × 105 cells per ml in 300 ml of RPMI medium containing 15% FBS and 1% Pen-Strep. After 24 h, the cells were pelleted at 200g and washed once with PBS. The cells were resuspended in 15 ml of RLT buffer and 300 mM DTT. The cells were then homogenized for 1 min at maximum speed and lysates were stored at –80 °C. Given the verified sources (see above), the cell lines used in this study were not re-authenticated. All cell lines tested negative for mycoplasma contamination. No statistical methods were used to predetermine sample size. The number of cells per replicate and barcodes per element were chosen on the basis of precedent in the MPRA literature, where comparable designs achieved sufficient power to detect effects on regulatory activity. Owing to the use of pooled libraries, blinding and randomization were not used. Data collection and analysis were performed by different investigators.

RNA extraction and cDNA synthesis

Total RNA was isolated from cells via Qiagen Maxi RNeasy (Qiagen, 75162) following the manufacturer’s protocol, including on-column DNase digestion by RNase-free DNase (Qiagen 79254). The final purified RNA was treated with 5 µl of SUPERase-In (Thermo Fisher Scientific, AM2696). Another DNase treatment was performed on total RNA via the addition of 5 µl of Turbo DNase (Thermo Fisher Scientific, AM2238) in 750 µl of total volume for 1 h at 37 °C. The reaction was terminated by the addition of 7.5 µl of 10% SDS (Life Technologies, 15553−035) and 75 µl of 0.5 M EDTA (Thermo Fisher Scientific, AM9260G), followed by incubation at 70 °C for 5 min. All the DNase-treated RNA was then subjected to GFP mRNA pulldown. For this reaction, 900 µl of 20× SSC mixture (Life Technologies, 15557-044), 1,800 µl of formamide mixture (Sigma Aldrich, 75-12-7) and 2 µl of 100 µM biotin-labelled GFP probe mixture (GFP_BiotinCapture_1-3; Supplementary Data 16) were added, and the volume was adjusted to 3,600 µl. The mixture was then incubated at 65 °C for 2.5 h with intermittent inverting of the tubes every 30 min. The biotin probes were captured via 400 µl of prewashed streptavidin beads (Thermo Fisher Scientific, 65002). The streptavidin beads were washed twice with Buffer-A containing 0.1 M NaOH (Sigma Aldrich, S2770) and 0.05 M NaCl (Thermo Fisher Scientific, AM9760G) and once with Buffer-B containing 0.1 M NaCl. The beads were then eluted in 500 µl of 20× SSC and added to the RNA-probe sample. The hybridized RNA-probe-bead mixture was mixed with a HulaMixer (Thermo Fisher Scientific, V.3A01) at room temperature for 15 min. The beads were captured with a DynaMag magnet (Thermo Fisher Scientific, 12321D) and washed once with 1× SSC and twice with 0.1× SSC. The extraction of RNA was performed by the addition of 25 µl of DEPC-treated water (Ambion, AM9906) and heating of the mixture for 2 min at 80 °C, followed by immediate collection of the eluent on a magnet. A second elution was performed by incubating the beads with an additional 25 µl of water at 80 °C. The eluted RNA was then processed for the final DNase treatment with 1 µl of Turbo DNase in a total of 56 µl of reaction. The mixture was incubated for 60 min at 37 °C, followed by inactivation with 1 µl of 10% SDS. The final DNase-treated GFP mRNA was eluted via RNAClean XP SPRI beads (Beckman, A63987) in 35 µl of DEPC-treated water. First-strand cDNA was synthesized via the use of 30 µl of DNase-treated GFP mRNA with SuperScript III and primer 19 (Supplementary Data 16) according to the manufacturer’s recommended protocol. Single-stranded cDNA was purified via AMPure SPRI (Beckman, A63881) beads and eluted in 30 µl of EB.

Tag sequencing libraries

To minimize amplification bias during the creation of cDNA tag sequencing libraries, samples were amplified via quantitative real-time PCR (rtPCR) to estimate the relative concentrations of GFP cDNA. rtPCR was performed via the use of a 1 µl cDNA sample in a 10 µl PCR mixture containing 5 µl of Q5 NEBNext Ultra II master mix, 1.7 µl of SYBR Green I diluted 1:10,000 (Life Technologies, S-7567) and 0.5 µM of TruSeq_Universal_Adapter and MPRA_Illumina_GFP_F primers (Supplementary Data 16). The samples were amplified with the following conditions: 98 °C for 20 s; 40 cycles of 98 °C for 10 s, 62 °C for 15 s, and 72 °C for 30 s; and 72 °C for 2 min, followed by melt curve analysis. For sequencing of plasmid library, serial dilutions of the plasmid library were prepared from 1,000 pg to 1 fg via tenfold dilutions. A standard curve was plotted with the plasmid library dilutions and based on the threshold cycles for the cDNA samples, a plasmid dilution with the same cycle threshold value was used for adaptor ligation. To add Illumina sequencing adapters, cDNA samples and 5 plasmid library controls were diluted to normalize the cDNA replicate with the lowest concentration or highest threshold cycle, and 10 µl of normalized sample was amplified using the reaction conditions from the rtPCR scaled to 50 µl, without adding SYBR Green to the reaction and by using only n − 1 amplification cycles (where n is the cycle number obtained from rtPCR). The amplified cDNA was 2× SPRI purified and eluted in 30 µl of EB.

A second PCR was performed to add the individual index primers to each sample. The PCR was performed with 20 µl of purified PCR 1 elute in a 50 µl Q5 NEBNext Ultra II reaction with 0.5 µM of TruSeq_Universal_Adapter primer and Illumina_Multiplex primer containing a unique 8 bp index for sample demultiplexing postsequencing (Supplementary Data 16). The samples were amplified at 98 °C for 20 s, 6 cycles of 98 °C for 10 s, 62 °C for 15 s, and 72 °C for 30 s and 72 °C for 2 min. Indexed libraries were 2× SPRI purified and quantified on a Qubit Flex (Thermo Fisher Scientific, Q33326) using a dsDNA HS Assay Kit (Thermo Fisher Scientific, Q33230) and pooled according to molar estimates from TapeStation (Agilent Technologies, 4200 TapeStation) quantification. The samples were sequenced via 1×20 bp reads on the Illumina NextSeq 2000 platform, with 80 M reads per cDNA library replicate and 60 M reads per plasmid library replicate.

MPRA data processing

To process the MPRA data, we used an established pipeline (https://github.com/tewhey-lab/MPRA_oligo_barcode_pipeline). The barcode-oligo sequencing FASTQ files were parsed using MPRAmatch function to create the barcode–oligonucleotide dictionary, retaining only barcode–oligonucleotide links with exact 30 bp matches. Barcode count tables were subsequently generated using MPRAcount function.

To quantify the activities of simple motifs and CEs, the analysis was conducted at three levels: barcode, oligonucleotide and motif. First, barcode-level count tables were processed with DESeq249 to remove barcodes with excessively large counts inconsistent with those of the biological replicates. This filtering used Cook’s distance, applying a 99% quantile threshold to exclude outliers. After filtering, the barcodes were aggregated into their corresponding oligonucleotides, and only those with at least 30 unique barcodes were retained for further analysis. The activities of the 30-bp oligonucleotides were assessed by performing DESeq2 differential analysis, which involved comparing the total barcode counts associated with each oligonucleotide in the RNA and DNA samples. Normalization and size factor estimation were performed using DESeq2’s internal methods. Additionally, cell-type-specific dispersion values were calculated by analysing only RNA replicates, and these refined dispersions were used to improve the accuracy of the final analysis. To further increase the reliability of the differential activity measurements, log fold change shrinkage was applied via the lfcShrink function from DESeq2, which helps reduce the impact of extreme log fold changes in oligonucleotides with low counts and provides more stable effect size estimates. To assess the activity of simple and composite TF motifs accurately, a comprehensive approach was used. For simple motifs, activities were determined by comparing the RNA/DNA log2FC in oligonucleotides containing the simple motif (sequence activity) with matched mutated control oligonucleotides (motif activity). For composite motifs, sequence and motif activities were estimated similarly by comparing RNA/DNA ratios for oligonucleotides containing the CE to those in matched double-mutant control oligonucleotides. Additionally, the contributions of individual motifs (motif 1 and motif 2) within a CE were examined by comparing the RNA/DNA ratios in oligonucleotides with one mutated motif to those in matched double-mutant control oligonucleotides. Synergistic effects between motifs within a CE were assessed by comparing the motif activity of the CE to the sum of the contributions from motif 1 and motif 2.

Simple and composite motifs were classified as activating or repressing based on both sequence and motif activity measures. Specifically, a motif was considered activating or repressing if both activities were significant (FDR < 0.05) and exhibited the same directionality (activating or repressing). P values for sequence and motif activities were adjusted using the Benjamini–Hochberg procedure. Non-additivity was classified using the P value for the CE-versus-summed-constituent contrast (P < 0.05). See Supplementary Note 5 for details.

Configuration dependence

For each activating or repressing cCE, wild-type oligonucleotide activities were compared with those of other entries for the same motif pair; both groups were required to contain more than one valid activity value. The statistic was the difference between the two group means. A null distribution was generated by sampling with replacement from all measured oligonucleotide activities 10,000 times, preserving the sizes of the two comparison groups (random seed 666). Upper-tail probabilities were used for activating cCEs and lower-tail probabilities for repressing cCEs. The reported P value was the fraction of resampled statistics at least as extreme in the relevant direction; no pseudocount or multiple-testing correction was applied in this configuration-dependence analysis.

Motif comparisons with binding data

To provide evidence for TF binding in vivo and in vitro, the cCEs identified by CEseek were compared with motifs obtained from ChIP–seq and CAP-SELEX datasets. Specifically, a comprehensive collection of uniformly processed TF ChIP–seq datasets from CistromeDB31,32,33 was assembled for haematopoietic (K562) and B cell (GM12878) cell lines. This dataset comprised 962 ChIP–seq experiments corresponding to 337 unique TFs in K562 cells and 370 experiments representing 160 unique TFs in GM12878 cells. From these datasets, a total of 14,897 de novo motifs were identified. Subsequently, each cCE identified by CEseek was systematically compared against this database of de novo motifs using the Tomtom50,51 motif comparison tool to assess motif similarity. Additionally, a similar comparative analysis was conducted between cCEs and a set of 1,749 (618 + 1,131) CAP-SELEX-derived heterodimeric motifs12,30. In this case, each CAP-SELEX motif was compared against the entire database of cCE motifs using the same computational approach (Tomtom). See Supplementary Note 8 for details.

CE enrichment in TF ChIP data

To determine whether CEs are specifically associated with co-binding of cognate TFs in vivo, a three-step analysis pipeline was implemented. First, simple TF motifs within each CE were matched with molecularly relevant ChIP–seq datasets. A simple motif was considered matched to a TF ChIP–seq dataset (1) if the TF targeted by the ChIP–seq experiment belonged to the same TF family as the simple motif, or (2) if the simple motif significantly matched one of the top 10 motifs from the TF ChIP–seq dataset (FDR < 0.05, assessed using Tomtom). The less stringent in vivo TF binding evidence (2) to CE regions is reported separately in Supplementary Data 8. Second, all CEs exhibiting significant transcriptional activity (activating or repressing) and synergistic effects were evaluated for enrichment within peaks from matched TF ChIP–seq datasets. This enrichment analysis was conducted using CEseek, with dinucleotide-shuffled sequences (four times the number of test sequences) serving as the background. Statistical significance was assessed using one-sided Fisher’s exact test (alternative = greater), with a stringent enrichment threshold of P ≤ 10−10. Finally, a selected set of CEs was assessed for enrichment specifically within regions co-bound by both relevant TFs (by at least 1 bp overlap). This analysis was conducted by comparing the occurrence of the CE within co-bound ChIP–seq peak regions to its occurrence within singly bound regions as the background, using CEseek and one-sided Fisher’s exact test (alternative = greater) for statistical evaluation. See Supplementary Note 8 for details.

GRACE model

To predict cell-type-specific regulatory activities in short DNA sequences, we developed a predictive model named GRACE. The GRACE model architecture starts with a convolutional layer consisting of multiple convolution blocks applied to DNA sequences that are transformed into one-hot encoded matrices. These blocks use different kernel sizes to capture motifs of varying lengths. This is followed by a transformer-based attention mechanism that analyses motif interactions. The convolutional layer helps identify TF binding sites of various sizes, whereas the self-attention mechanism, which is enhanced with positional encoding, captures the complex interactions between these motifs. This combination allows the model to effectively represent and analyse intricate regulatory elements within sequences.

To mitigate overfitting and enhance the model’s generalizability, we used dropout layers and data augmentation techniques, such as random sequence additions and reverse complement usage, to diversify the training data. Additionally, early stopping was used to halt training once validation loss failed to improve for a certain number of epochs, ensuring optimal model performance without overfitting.

The GRACE model was implemented via PyTorch and PyTorch Lightning, with a custom DataModule that handles data loading, splitting, augmentation, and normalization of activity values, ensuring streamlined and efficient data handling.

The model was trained on MPRA experimental datasets containing oligonucleotide activities, which were preprocessed and divided into training, validation, and test sets. We assigned variant sequences that were derived from a given parent sequence to the same subset, preventing data leakage, thereby enhancing the model’s ability to generalize predictions to all possible single-nucleotide variants. Preprocessing involves filtering sequences by barcode count, augmenting them with random segments to mitigate positional bias, and incorporating reverse complement sequences to improve robustness and generalizability. Sequence padding was applied to ensure uniform input lengths for efficient batch processing. The model’s attention mechanism was restricted to 30 bp blocks, allowing the model to focus on local regulatory features while maintaining computational efficiency and avoiding artificial long-distance attention created by random sequence augmentation.

Training was conducted via the AdamW optimizer, which incorporates weight decay to prevent overfitting, along with a learning rate scheduler to dynamically adjust the learning rate throughout training, improving convergence. Early stopping was also used to prevent overfitting by monitoring the validation loss and halting training once the performance ceased to improve. The evaluation metrics included the MSE, Spearman correlation and Pearson correlation, providing a comprehensive assessment of the model’s ability to predict regulatory activity. To validate the model, predictions on withheld test sequences were compared directly to experimentally measured activities, ensuring reliable model performance. See Supplementary Note 10 for the details for GRACE model training and Supplementary Note 11 for the benchmark of GRACE model with other methods.

The code for the GRACE model can be found at https://github.com/Jingyu-Fan/GRACE.

GRACE CWMs and comparison with CEseek PWMs

To elucidate the motifs contributing to transcriptional activity, in silico saturation mutagenesis was performed, systematically mutating each nucleotide position within the input DNA sequences to evaluate their individual contributions to transcriptional activity.

For each 30-bp oligonucleotide, single-base substitutions were introduced at every position, and the transcriptional activities (log2FC) of these variants were predicted using GRACE. The predictions were organized into 4 × L matrices (rows corresponding to nucleotides A, C, G and T; columns corresponding to sequence positions). CWMs were then generated by subtracting the mean log2-transformed activity of each position from the activity of each nucleotide variant at that position. This normalization step removed position-specific biases. To produce a sparse representation highlighting key nucleotide contributions, only the scores corresponding to nucleotides present in the original (wild-type) sequences were retained, with all other entries set to zero. The resulting matrices were visualized as contribution scores.

To compare these GRACE-derived CWMs systematically with CEseek-generated PWMs, the CWMs were first converted into PPMs via the Softmax function, ensuring that the probabilities at each position were summed to 1. To assess similarity, each resulting PPM was compared to its corresponding CEseek-derived PWM via Tomtom. For robust statistical comparison, 1,000 randomized background PWMs were generated for each PWM by shuffling positions and nucleotides. The similarity between each CWM-derived PPM and its corresponding CEseek-derived PWM, as well as the background PWMs, was evaluated, and the FDR was calculated. Multiple oligonucleotides representing each CE were analysed, and the maximum negative log10-transformed Tomtom q value across the analysed oligonucleotides was used as the motif-level similarity score. A threshold of q ≤ 0.05 was used to define significant similarity between a CE’s GRACE-derived CWM and its corresponding CEseek-derived PWM.

GRACE predictions of transcriptional activity of OCRs

The GRACE model was applied to predict the transcriptional activities of the OCRs. Because GRACE requires 50 bp sequences as inputs and OCRs typically exceed this length, a stepwise procedure was implemented. First, each OCR was segmented into overlapping 50 bp sub-sequences using a 1 bp sliding window, and the activity (log2FC) of each sub-sequence was predicted using GRACE. All the predicted activities for the 50-mer sequences within each OCR were subsequently ranked from highest to lowest. The sub-sequence with the highest predicted activity was selected and included in the overall activity score of the OCR if it exceeded a predefined threshold (log2FC = 0.2). This process was iteratively repeated, excluding sub-sequences overlapping previously selected segments, until no remaining 50-mer sequences surpassed the activity threshold. The sum of the selected sub-sequences’ activities represented the final GRACE-predicted transcriptional activity of the OCR. The H3K27ac ChIP–seq signal of an OCR is calculated as the average read per million (RPM) for the 1 kb size window centred at the OCR and the ATAC–seq signal.

Contributions of simple motifs and CEs to genomic features

The contributions of simple motifs and CEs to transcriptional activity and chromatin accessibility were systematically evaluated using genome-wide contribution scores derived from the GRACE and ChromBPNet models, respectively. AlphaGenome was additionally used to evaluate the contributions of simple and composite motifs to nascent transcription and histone modifications; due to bandwidth limitations, these analyses examined selected CE examples, with at most 100 eligible genomic motif instances analysed per configuration. For this analysis, the collection of simple motifs included 879 motifs sourced from the JASPAR 2024 vertebrate core collection25. The CE collection consisted of 951 unique cCEs identified as being active in the MPRA experiments conducted in the K562, GM12878, and Jurkat cell lines. To identify instances of simple and composite motif hits within OCRs, CEseek was used. The contribution scores obtained from GRACE and ChromBPNet were organized into CWMs, which were formatted as 4 × L matrices (rows representing nucleotides A, C, G and T; columns representing sequence positions). For each motif occurrence, the contribution scores were summed and averaged by dividing by the number of motif hits. Each averaged CWM was subsequently normalized through elementwise multiplication with the corresponding PPM derived from CEseek-detected motif hits. The resulting sum was divided by the motif length to yield the motif’s normalized contribution score. The baseline contribution scores were computed similarly using ±50 bp flanking regions around motif hits. The final motif contribution was calculated as the fold difference between the motif hit region and the baseline flanking region. For visualization, the aggregated CWMs were computed over a window spanning the motif region extended by a fixed number of flanking bases (typically ±10 bp). Baseline contribution levels were estimated independently from the distal flanking regions (typically the outer ±50 bp relative to the motif centre) by averaging contribution scores across these regions. These baseline values were used for visualization as reference levels (for example, dashed lines in CWM logos) but did not alter the underlying CWM values. For the per-pair correlation summaries of untested configurations, motif pairs were retained when each model had at least one untested configuration with a contribution score exceeding its global mean by 0.5 standard deviations. The retained sets comprised 158 motif pairs in K562 and 96 in GM12878; Pearson correlations were at least 0.6 for 101 and 56 pairs, respectively.

GRACE analysis of autoimmune variants

The GRACE model was used to predict and interpret the functional impact of disease-associated genetic variants identified through GWASs. A recently published MPRA dataset comprising functional assays conducted with 150 bp reference and variant sequences in an Epstein–Barr virus-transformed B cell line derived from a patient with lupus was used38. From this MPRA dataset, expression-modulating variants demonstrating ambiguous allele-specific effects without statistical significance (|log2FC| ≥ 0.1 and FDR ≥ 0.05) were excluded. A total of 1,719 assayed variants were subsequently compiled, 319 of which exhibited significant allele-specific effects (|log2FC| > 0.6 and FDR < 0.05). To predict the variant effects, GRACE activity predictions were performed on 50 bp sequences centred on each variant site, comparing reference and alternative alleles. The difference in predicted activity between the two alleles was utilized as a measure of the variant effect. Among the 319 variants with significant experimental allele-specific effects, an absolute GRACE-predicted allele effect greater than 0.2 selected 68 variants for motif-level interpretation. GRACE-generated contribution scores for these 50 bp sequences were then analysed to interpret the TF motifs (simple or CE) underlying the observed variant effects.

To extend this analysis, we incorporated a larger set of autoimmune disease-associated variants curated from PICS239 fine-mapped GWAS datasets and the Pan-UK Biobank40 (Pan-UKB) resource. Pan-UKB genome-wide association summary statistics were obtained from publicly available datasets and parsed to extract variant-level information, including genomic coordinates, alleles, effect sizes, and association statistics. Disease-specific datasets were selected based on phecode annotations corresponding to autoimmune conditions, including multiple sclerosis (MS), rheumatoid arthritis (RA) and systemic lupus erythematosus (SLE). In parallel, PICS2-derived variants were used to obtain a fine-mapped set of candidate causal SNPs across >30 autoimmune diseases, yielding 5,118 variants analysed in this study (Supplementary Data 14). The extended prediction set used an absolute GRACE-predicted allele-effect threshold of 0.25. These variants were evaluated using GRACE models trained on TF-motif MPRA data in GM12878 B cells, and their predicted transcriptional effects were compiled as part of the ‘Variant impact contribution plots’ in the CE portal.

Materials availability

The TF-motif MPRA plasmid library is available upon request.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.



Source link

Previous Post
Towards large-scale genome editing

Towards large-scale genome editing

Next Post
The hack that super-tough tardigrades use to survive total dehydration

The hack that super-tough tardigrades use to survive total dehydration