Abstract
Females exhibit a more robust immune response to both self-antigens and non-self-antigens than males, resulting in a higher prevalence of autoimmune diseases but more effective responses against infection. Increased expression of X-linked immune genes in female T cells is thought to underlie this enhanced response. Here we isolate thymocytes from pediatric thymi of healthy males (46, XY), females (46, XX), a female with completely skewed X-chromosome inactivation (46, XX, cXCI) and a female with Turner syndrome (45, X0). Using whole exome sequencing, RNA sequencing and DNA methylation data, we present a sex-aware expression profile of T cell development and generate a high-resolution map of escape from X-chromosome inactivation (XCI). Unexpectedly, XCI is transcriptionally and epigenetically stable throughout T cell development, and is independent of expression of XIST, the lncRNA responsible for XCI initiation during early embryonic development. In thymocytes, several genes known to escape XCI are expressed from only one X-chromosome. Additionally, we further reveal that a second X-chromosome is dispensable for T cell development. Our study thus provides a high-resolution map of XCI during human development and suggests a re-evaluation of XCI in sex differences in T cell function.
Subject terms: Autoimmunity, Dosage compensation, T cells, Systems analysis
X-chromosome inactivation (XCI) contributes to sex bias in T cell immunity, but data on profiling XCI during human T cell development is still lacking. Here, the authors leverage allele-specific expression, sex-biased gene expression and DNA methylation data on human pediatric thymocytes to find surprisingly stable XCI during thymocyte differentiation.
Introduction
T cells are a crucial component of adaptive immunity in humans. Although the anatomy of T cell development is identical in males and females, females tend to have a more robust immune response to antigens and higher resistance to both viral and bacterial infections than males1,2. The latter has been emphasized by the COVID-19 pandemic, which has resulted in greater mortality in men3. While it is possible that differing exposure and infection rates have impacted this observation, it has also been associated with sex-specific differences in the immune response to SARS-CoV-2 infection, specifically in T cell responses3. Indeed, females have higher levels of mature CD4 + T cells and generate more activated T cells following in vitro stimulation2–6. In addition, females are more susceptible to autoimmune diseases, with many, including multiple sclerosis (MS) and systemic lupus erythematosus (SLE), exhibiting a profound female bias (>3 female:1 male)7 suggestive of a more hyper-responsive adaptive immune system in females compared to males. This sexual dimorphism of immune system function has been linked to (i) hormonal differences, (ii) divergence of thymic T cell development and selection, and (iii) the presence of an additional, albeit inactivated, X-chromosome in all female cells2,8.
Whereas female (XX) cells undergo X-inactivation (XCI) during embryonic development to balance chromosomal dosage against males (XY)9, around 15–20% of X-linked genes in humans escape silencing and remain biallelically expressed10,11 resulting in higher levels of gene products in female cells. Importantly, several of these proposed escapee genes have a known role in the adaptive immune response (e.g., CD40LG, TLR7 and CXCR3), implicating the immune-modulatory potential of X-chromosome dosage as a source of adaptive immune response differences between males and females12. Indeed, males with Klinefelter syndrome (KS) carry an additional X-chromosome (47, XXY) and have an increased risk for autoimmune disease compared to males of normal karyotype (46, XY). Similarly, expression of TLR7 and CD40LG in activated CD4+ T cells is higher in females and KS males than in males of normal karyotype (46, XY) or Turner syndrome (TS) females lacking a second X-chromosome (45, X0)6. Finally, recent studies have revealed that XIST coating of the inactive X-chromosome is dynamic during normal T cell development in mouse and human and suggested that re-activation of silenced X-linked genes may be required for appropriate T cell development13,14.
Although recent studies have advanced our understanding of the trajectory of human thymocyte development15,16, they have not addressed the sex-specific characteristics of T cell development, which remains largely unexplored.
Here, using thymocyte subpopulations isolated from healthy male and female pediatric thymi, we specifically aim to reveal the sex-specific features of human thymocyte development and whether they could underlie the difference in T cell biology observed between males and females. Using pediatric female samples 100% skewed for X-inactivation (cXCI) or from a TS patient we map the XCI landscape and functionally dissect the contribution of the inactive X-chromosome to T cell development in humans. We find escape from XCI to be highly stable across thymocyte populations and reveal that the second X-chromosome in females does not contribute to proper T cell development. This work motivates a re-assessment of XCI during pediatric T cell development as the origin of sex differences in T cell function.
Results
A unique landscape of sex-biased gene expression in human thymocytes
T cell development in the thymus occurs in a tightly controlled stepwise manner15,17. To establish a sex-resolved transcriptomic map spanning thymic T cell development, we performed mRNA sequencing (RNA-seq) on thymocyte populations corresponding to key developmental stages from healthy male (N = 3) and female (N = 4) thymi (Fig. 1a, Supplementary Fig. 1, Supplementary Table 1 & Supplementary Table 2). The six selected thymocyte subsets are well characterized and capture the key steps in human T cell development16,18. Principal component analysis of global expression revealed distinct profiles for each subset matching their developmental trajectories (Fig. 1b & Supplementary Fig. 2a, b). In line with previous studies15,18, modeling of differential expression across cell types revealed enrichment for genes involved in T cell selection and cell-type specific expression of key genes involved in early thymic progenitor (ETP) stemness, CD4 and CD8 double positive (DP) cell β-selection and CD4 or CD8 single positive (SP) cell lineage commitment19 (Fig. 1c, Supplementary Data 1, Supplementary Data 2). These results highlight not only the coordinated temporal regulation of human thymocyte development but also the specific checkpoint-associated changes (Supplementary Fig. 2c, d).
In line with expression of 100-150 escape genes from the inactive X-chromosome (Xi) in females (Fig. 1d), chromosome X had the highest proportion of genes showing significant sex-biased expression (Wald test, P < 1 × 10−5 & absolute log2FC > 0.2) during thymocyte development (Fisher’s Exact Test, P = 1.744 × 10−6) (Supplementary Fig. 3a, Supplementary Data 3 & Supplementary Data 4). Many well-characterized escape genes (e.g., CDK16, DDX3X, EIF1AX, EIF2S3, FUNDC1, JPX, KDM5C, KDM6A, PRKX, PUDP, SMC1A, STS, UBA1, ZFX, ZRSR2) exhibited a pronounced female-biased expression, reflecting biallelic expression in females and subtype expression in males (Fig. 1e, f). Female-biased escape genes were expressed 0.22-0.59 times higher in females than males (Wald test, P < 1 × 10−5), consistent with the observation that expression of transcripts from the Xi is typically lower than their expression from the active X-chromosome (Xa) (Fig. 1f). Interestingly, we were unable to confirm female sex-biased expression in a number of known escape genes (AP1S2, ARSD, CXorf38, GEMIN8, GPM6B, IKBKG, MED14, MSL3, NAP1L3, OFD1, RAB9A, RENBP, SYAP1, TCEANC, TRAPPC2, TXLNG, USP9X; Wald test, P > 1 × 10−5 & log2FC < 0.2) (Fig. 1e). One gene assumed to undergo XCI showed a significant (Wald test, P < 1 × 10−5 & log2FC < −0.2) male-bias (SPIN3).
Approximately 3% of X-linked genes are located in the pseudoautosomal region (PAR) at the tips of the q-arm (~200 Mbp) and p-arm (~350 kbp) of chromosome X, which are homologous to PARs on the Y-chromosome (Fig. 1d). As expression from the Xi is typically lower than that observed from the Xa10,20, combined expression of alleles in the PAR region in females is assumed to be lower than that of the same alleles from the X and Y PAR regions in males, resulting in male-biased expression of PAR genes. However, we observed no consistent male-bias in PAR gene expression in thymocytes (Figs. 1f, 2a), which was confirmed by qPCR in CD4SP and CD8SP cells (Fig. 2b). Interestingly, the gene PPP2R3B showed a distinct subtype specific pattern of male-biased expression in ETP and T cell committed (T-C) cells (Fig. 2a). Protein phosphatase 2 (PP2A), of which PPP2R3B is a subunit, is a powerful negative regulator of cell proliferation, has been shown to play a key role in mammalian thymocyte development and is required for appropriate thymocyte selection and DP cell maturation21–23. Nonetheless, the general lack of male-biased PAR gene expression was unexpected and in stark contrast to a previous study of X-linked gene expression, which reported consistently higher expression of PAR genes in males across 29 tissues in the GTEx database10. Upon meta-analysis of the GTEx data we observed the expected, consistent female-biased expression of nonPAR escape genes but found sex-bias of PAR genes to be infrequent and highly tissue specific (Fig. 2c). Interestingly, the sole lymphocyte sample (LCL) showed the lowest number of sex-biased PAR genes (N = 1), similar to thymocyte samples analyzed here (Fig. 2c). Analysis of expression of two PAR genes previously reported to show pronounced male biased expression (CD99, P2RY8)10 by qPCR in an independent panel of 20 human tissue pools revealed low or absent expression of these genes in many solid tissues (Fig. 2d) suggesting that detection of male sex-bias in some tissues was artefactual, resulting from low levels of expression. Indeed, expression of CD99 and P2RY8 as detected by qPCR in the majority of tissues was below expression of EPAS1, a gene expressed specifically in adipose, lung and placental tissue (Fig. 2d). Failure to account for the duplication of X and Y PAR regions in reference genomes during alignment can also result in inaccurate estimation of gene expression24. Comparing the sex-biased gene expression obtained with a pseudo-aligner (Salmon) to that obtained from a reference-based alignment method (STAR), the pseudo-aligner showed a weaker shift towards male and female bias (Supplementary Fig. 3b, Supplementary Data 5 & Supplementary Data 6). Indeed, re-evaluation of X-linked expression using pseudo-alignment in 46 tissues in 898 individuals showed reduced sex-bias in both PAR (male bias) and escape genes (female bias) (Supplementary Fig. 3c, d & Supplementary Data 7). Importantly, sex-biased expression of PAR genes was highly tissue specific with adipose tissue and thymocytes showing no bias, whereas pronounced male-biased expression was observed in brain (Supplementary Fig. 3c). To further exclude alignment-related artefacts, we re-analyzed expression microarray data available from GTEx, which again confirmed low levels of sex-biased expression of PAR genes across most tissues (Supplementary Fig. 3e & Supplementary Table 3).
Together, our findings reveal a distinctly unique pattern of sex-biased gene expression in developing human T cells and that previous estimates of sex-biased expression of X-linked genes may have markedly overestimated this phenomenon.
Stable X-inactivation during human T cell development
During quality control of the thymocyte RNA-seq data we observed that the majority of reads mapping to the X-chromosome in a single female sample (F3) were transcribed from the same copy of the X-chromosome, as evidenced by a lack of heterozygous single nucleotide polymorphisms (SNPs) in randomly inactivated X-linked genes (Supplementary Fig. 4a). Detection of subtype expression in bulk tissue samples is only possible in karyotypically normal females exhibiting complete skewing of X-inactivation (cXCI); the same parental X-chromosome has been inactivated in every cell in the examined tissue (Fig. 3a). Complete XCI skewing in sample F3 was confirmed by HUMARA assay (Fig. 3b)25 and further verified by whole exome sequencing (WES) followed by allele-specific expression analysis of all four female samples (Fig. 3c & Supplementary Fig. 4b, c). This powerful natural genetic model allowed allele-specific expression mapping throughout human thymocyte development including 127 X-linked genes for which we detected 259 heterozygous SNPs in F3 (filters: WES, read count >20 for both alleles, RNA-seq readcount >10, and minor allele frequency (MAF) > 10% in either RNA-seq or WES) (Fig. 3d & Supplementary Fig. 4b, c). In F3, PAR genes were expressed from both X-chromosomes whereas genes undergoing XCI showed consistent monoallelic expression (allelic expression >0.4) (Fig. 3d, e & Supplementary Fig. 5). Our unique data allowed us to build on our landscape of sex-biased expression and confirm escape status for novel (PUDP, SEPT6) and known (DDX3X, EIF1AX, EIF2S3, KDM6A, PRKX, RPS4X, SMC1A, TXLNG, ZFX, ZRSR2) escape genes in thymocytes (Fig. 3e & Supplementary Data 7).
Our finding of stable subtype expression of inactivated genes throughout T cell development (Fig. 3d, e & Supplementary Fig. 5) is at odds with the emerging paradigm of low fidelity (leaky) XCI maintenance during lymphocyte development in females resulting in atypical expression across the X-chromosome and ultimately altered T cell function between the sexes13,14,26,27. Notably, the stability of Xi gene repression during thymocyte development contrasted with highly variable expression of XIST between different T cell sub-populations including a 7-fold expression difference between CD4 and CD8 single positive T cells (Fig. 4a). Despite the profound variability in XIST expression, no significant variability in minor (Xi) allele expression at inactive genes10 (NGENES = 78; NHET-SNPS = 145) was observed (Fig. 4b, c), decoupling XIST expression levels from XCI maintenance during thymocyte development. A similar lack of minor allele expression was observed across X-linked immune genes28–30 (NGENES = 20; NHET-SNPS = 40); < 0.5% of total reads (Fig. 4b, c). Importantly, the vanishingly low levels of minor allele expression are inconsistent with complete loss of XCI in even a small sub-population (2–5%) of the total T cell pool, as previously proposed13,14.
To further validate our findings, we performed single cell whole transcript sequencing (Smart-seq2) of sorted thymocytes from a non-skewed female thymus (F4, Fig. 3a–c). Approximately 0.4 million aligned reads were obtained per cell for 69-84 cells per subtype (Supplementary Table 2). Clustering revealed a highly similar developmental trajectory of thymocyte development to that observed from bulk RNA-seq analyzes (Fig. 5a). Whole exome sequencing identified 206 heterozygous SNPs in 115 X-linked genes allowing more accurate classification of allelic expression (Supplementary Data 8). The number of reads arising from the Xi at inactive genes was low in all subtypes consistent with XCI remaining highly stable throughout human T cell development (Fig. 5b).
We further leveraged the single cell RNA-seq data to investigate the XCI status of individual genes using a pseudo-bulk approach to infer the inactive X-chromosome in each cell31,32. Allelic XIST expression showed a clear distinction between cells expressing reference or alternative allele (Supplementary Fig. 6a) and clustering XIST expressing cells on reference ratio of all X-linked genes resulted in two clear clusters of cells reflecting the expression of SNPs arising from either the paternal or maternal X-chromosome (Supplementary Fig. 6b). As XIST read counts were only obtained in 150/516 cells, the allelic expression of seven additional inactive genes allowed us to infer Xa and Xi in the remaining 366 cells (Supplementary Fig. 6c & Supplementary Data 9). Importantly, cells of all 6 thymocyte subtypes followed the same clustering pattern (Supplementary Fig. 6b), once again suggesting that a widespread increase in biallelic expression from the X-chromosome does not occur during T cell development in humans.
Finally, we leveraged information on Xi-clustering to determine XCI status of 132 heterozygous SNPs in 83 X-linked genes (Fig. 5c & Supplementary Fig. 6d). In cluster 1, 17 out of 107 (15.8 %) heterozygous SNPs and 9/72 (~ 12.5 %) genes escaped XCI while in cluster 2 the proportion of escaping heterozygous SNPs were 21/104 (20 %) and escaping genes 11/67 (16.4 %). Out of the 79 heterozygous SNPs that were identified in both clusters, 73 were classified with the same XCI status while six heterozygous SNPs (DDX3X (chrX:41,343,866), MAGED1 (chrX:51,901,652), PRKX (chrX:3,606,268), TIMM17B (chrX:48,894,188), ZFX (chrX:24,172,860) and ZFX (chrX:24,215,242)) were classified differently between clusters (Fig. 5c & Supplementary Fig. 6d).
Taken together, our results exclude widespread atypical biallelic expression caused by a general relaxation of XCI during human thymocyte development. However, our results do not exclude locus-specific loss of XCI resulting in biallelic expression of specific genes as reported for some X-linked immune genes such as TLR733.
A refined landscape of X-inactivation in humans
The direct determination of allelic expression was limited to genes carrying a heterozygous SNP, representing less than 25% of all expressed X-linked genes. To estimate chromosome-wide levels of XCI we mapped DNA methylation in all six thymocyte subtypes in three female samples (F1, F3 and F4) using EPIC methylation arrays. Analysis of the 1000 most variable CpGs resulted in clustering of samples based on developmental stage (Fig. 6a) in a pattern highly similar to that obtained with RNA-seq (Fig. 1b). As expected, expression changes of many key thymocyte transition genes (e.g., RAG1, RORC, CD8A, CD3D, CD3G) were accompanied by corresponding changes in promoter DNA methylation (Fig. 6b & Supplementary Fig. 7a). Consistent with stable allelic expression throughout thymocyte development, irrespective of XIST expression, no pronounced global alterations in DNA methylation on the X-chromosome were observed (Supplementary Fig. 7b, c).
Escape genes with confirmed biallelic expression were typified by a lack of promoter methylation throughout development whereas confirmed inactive genes were characterized by intermediate (25–75% methylation) levels of promoter methylation (Fig. 6c). As observed for gene expression levels, DNA methylation at inactive genes was highly stable throughout thymocyte development and showed no association with levels of XIST expression (Supplementary Fig. 7d), further de-coupling XIST from maintenance of XCI in thymocytes. More specifically, genes previously reported to show leaky expression from the Xi during lymphocyte development (CD40LG, TLR7, ITM2A) also showed no association between XIST expression and promoter methylation (Fig. 6d).
Leveraging our allelic expression data, we defined the sex-biased expression and DNA methylation characteristics of canonical escape and inactive genes (Fig. 7a, upper panel). Using this classification, we identified a further 21 and 291 putative escape and inactive genes, respectively (Fig. 7a, lower panel & Supplementary Data 10). 86% (288/334) of the predicted genes agreed with XCI gene classifications from previous studies, confirming the accuracy of our approach (Fig. 7b & Supplementary Data 11). Moreover, several genes that were re-classified here from escape to inactive (e.g., GPM6B, IKBKG) have recently been reported as having atypically high levels of promoter DNA methylation34, consistent with genes undergoing XCI. In total, we re-classified the XCI status of 62 genes in T cells (Supplementary Data 11).
Importantly, we also identify three genes previously described as escapees that did not escape in thymocytes (ARSD, GEMIN8 & MSL3) (Fig. 3e). The promoters of both GEMIN8 and ARSD were unmethylated (Fig. 7c), typical of escape genes, but neither showed female-biased expression (Supplementary Data 10), reinforcing the need to combine both data types for accurate XCI classification. Interestingly, mutations in MSL3 were recently discovered as the genetic cause of a novel neurodegenerative disease, Basilicata-Akhtar syndrome35. Indeed, the lack of sex-biased expression of MSL3 across multiple tissues and intermediate levels of DNA methylation (Supplementary Fig. 7e) are also consistent with its classification as an inactive gene, with no evidence of female biased expression in brain, the primary affected organ (Supplementary Fig. 7f). Importantly, re-classification of MSL3 as an inactive gene precludes escape from inactivation as an explanation for the equal penetrance of Basilicata-Akhtar syndrome in affected males and females35,36.
In conclusion, by combined allele-specific expression, DNA methylation and sex-biased expression analysis we classify the XCI status of ~73% (354/484) of expressed X-linked non-pseudo genes in thymocytes, representing the most comprehensive map of XCI in any human tissue to date.
The inactive X-chromosome does not contribute to T cell development
The high-fidelity maintenance of XCI observed here challenges the emerging paradigm that variable XCI is functionally relevant to T cell development in females. To directly assess the contribution of the inactive X-chromosome to human T cell development, we isolated the same six pediatric thymocyte subpopulations (Fig. 1a) from a female individual lacking a second X-chromosome (TS; 45, X0). Absence of the entire second X-chromosome was confirmed by a complete lack of common heterozygous X-linked SNPs and PCR of heterozygous repeats on the X-chromosome (Supplementary Fig. 8a, b). As expected, TS thymocytes had lower expression of escape genes compared to karyotypically normal females and lower PAR gene expression than both karyotypically normal males and females (Fig. 8a). Despite these differences, complete absence of an inactive X-chromosome had no detectable effect on T cell differentiation as measured by RNA-seq, with TS thymocytes exhibiting both an identical developmental trajectory (Fig. 8b) and subtype specific gene expression patterns as thymocytes from karyotypically normal males and females (Fig. 8c & Supplementary Fig. 8c). Thus, haploinsufficiency for immune genes (e.g., CD99, CSF2RA, IL3RA, IL9R) located in the PAR region has no effect on T cell development in females. Moreover, our results also suggest no effect of haploinsufficiency for gametalog escape genes; the 13 escapees with homologous genes on the Y-chromosome (e.g., KDM6A, DDX3X, USP9X, ZFX)10.
Despite the lack of a second X-chromosome TS individuals have a higher prevalence for several autoimmune diseases, similar to karyotypically normal females. A potential explanation for the heightened autoimmunity in TS females may in part be a less complex T cell receptor (TCR) repertoire due to presentation of antigens from a single copy of the X-chromosome by thymic epithelial cells. As expected, TCR rearrangement and TCR repertoire formation was apparent after the T-C stage of thymocyte development (Fig. 8d), but no clear difference between the occupied repertoire space or the diversity of the TCR repertoire of either the TS or cXCI female (F3) was observed when compared to male and female samples of normal karyotype (Fig. 8e, f).
Discussion
An emerging hypothesis posits that aberrant or leaky expression of immuno-modulatory genes from the inactive X-chromosome in female T cells results in a hyper-responsive immune system, eliciting enhanced sensitivity to both self- and non-self-antigens. The profound importance of the imbalance in immune function has been highlighted during the COVID-19 pandemic, in which males were 3 times more likely to experience severe disease than females3. Understanding the molecular biology underlying this difference could result in improved sex-specific treatments for infectious and autoimmune disease.
Our serendipitous discovery of a cXCI female allowed us to create the first map of allelic expression during normal T cell development in humans and revealed that X-inactivation is highly stable throughout T cell maturation. Stability of XCI was independent of XIST levels and resulted in minimal sex-biased expression of X-linked genes in thymocytes. Together these findings motivate a refinement of the attractive but underdeveloped paradigm of atypical escape from XCI of immune genes during T cell development as a key driver in the altered adaptive immune response between the sexes. However, as our results are based exclusively on pediatric thymi, they do not exclude the occurrence of atypical escape during (i) thymocyte development later in life, when most sex-biased autoimmune diseases such as SLE are diagnosed or (ii) during the process of T cell activation/differentiation in which atypical XCI has also been observed13. Further, given the limited sample size (NMALE = 3, NFEMALE = 4), our study cannot account for the potential effect of inter-group genetic variation as a confounder of the observed sex differences.
While our results appear to exclude a general relaxation of XCI and associated increase of gene expression across the inactive X-chromosome during T cell development, they do not exclude localized loss of XCI resulting in biallelic expression of specific X-linked genes. Whereas the use of samples from a cXCI female allowed direct determination of XCI status, this could only be achieved for the 127 X-linked genes containing heterozygous SNPs in this female. Indeed, the 127 genes assayed did not include genes such as TLR7 which is the most frequently reported atypical escapee in human immune cells12,13,33. Interestingly, most studies reporting atypical XCI maintenance in lymphocytes have used RNA-FISH to detect primary transcripts in situ12,13,33, whereas here we assayed polyA mRNA. Taken together, it is tempting to speculate that post-transcriptional regulation of atypically expressed X-linked pre-RNAs could restrict their processing into mature polyA RNA. Indeed, X-linked transcripts have RNA modification profiles distinct to those of autosomal transcripts which have been suggested to alter X-linked RNA stability and turnover37,38.
Finally, these data represent the first high-resolution map of X-inactivation during any normal developmental process in humans and are a unique resource for investigating the biology of XCI in human health and disease.
Methods
Ethics statement
The collection of human samples was approved by the Swedish Ethical Review Authority (Dnr 2022-07166-02 & Dnr 217-12, 2012-04-27) and all parents gave written informed consent for participation in the study. The study was performed in accordance with the declaration of Helsinki.
Study participants
Thymic lymphocytes were isolated from nine participants. Four XX-females, four XY-males and one X0 Turner syndrome patient. Participants had a mean age of 15 months (2–38 months). Information on inclusion of each participant in individual experiments can be found in Supplementary Table 1.
Isolation of thymic lymphocytes and PBMCs
The thymic tissue was placed in cold PBS immediately after surgical removal and tissue processing started within one hour. Thymic lymphocytes were isolated from tissue by mechanical disassociation and filtration. The thymic single cell suspension and peripheral blood were density centrifuged on Ficoll-Paque Plus (Cytiva, 17144003).
Sorting of thymocyte populations
The enrichment of CD34+ cells was performed with DynabeadsTM CD34 Positive Isolation Kit (Invitrogen, 11301D). Enriched and non-enriched samples were then stained with antibodies listed in Supplementary Table 4. Live/Dead - FVD506 (eBioscience, 65-0866-14) was used as viability marker. The biotinylated antibody was stained with Brilliant Violet 421 Streptavidin (Biolegend, 405226). Thymocyte cell populations were sorted on a SH800 cell sorter (Sony) or FACSAria Fusion (Beckton Dickinson) following the gating strategy described in Supplementary Fig. 1.
DNA and RNA extraction
Genomic DNA and RNA were extracted using the Quick-DNA/RNA Miniprep Kit (Zymo Research, D7001). RNA samples were treated with DNase I (5U; Zymo Research, E1010) in column to digest DNA. Similarly, DNA was treated using RNase A (Thermo Fisher, EN0531). DNA was quantified using the NanoDrop 2000 Spectrophotometer (Thermo Fisher). RNA was quantified and quality was assessed with 2100 Bioanalyzer (Agilent, 5067-1511). All samples had a RIN score ≥ 8.
RNA-seq library preparation
100 ng RNA from thymocyte populations was diluted in nuclease-free water to a total volume of 50 µl and enriched for mRNA using the NEBNext Poly(A) mRNA Magnetic Isolation Module based on Oligo-dT-beads (New England Biolabs, E7490S). For the Turner syndrome patient (TS) sequencing libraries were prepped from only 50 ng of RNA. Fragmentation, cDNA synthesis, dA-tailing, adapter ligation, indexing and PCR enrichment for 11 cycles was done using the NEBNext Ultra II RNA Library Prep Kit for Illumina (New England Biolabs, E7770S) and NEBNext Multiplex Oligos for Illumina Index Primers Set 1 and Set 2 (New England Biolabs, E7335S and E7500S) following the manufacturer’s instructions. Library size distribution and quality was checked using 2100 Bioanalyzer (Agilent, 5067-4626). Library concentration was determined on the Quantus or Qubit Fluorometer with QuantiFluor ONEdsDNA Dye (Promega, E4871) or Qubit 1X dsDNA HS Assay (Thermo Fisher, Q33231), respectively. Libraries were pooled and diluted to a concentration of 800 pM and sequenced on the NextSeq 2000 machine using the NextSeq 1000/2000 v3 Reagents (Illumina, 20046812 or 20040560) with paired-end reads of 100 bases each and 30–68 million reads per sample.
Differential expression of thymocyte RNA-seq data
Transcriptome mapping was performed using Salmon39 (v1.10.2) (–gcBias –seqBias –numBootstraps 100) using known Refseq transcripts (NM_* and NR_*, excluding all Y-PAR transcripts) from the GRCh38.p12 assembly (GCF_000001405.38_GRCh38.p12_rna.fna.gz) as a reference. Library type options were Thymocyte: IU. Raw fastq reads were quality trimmed using FastP40,41 (v.0.23.4) with default settings. Abundance estimates were converted to h5 format using Wasabi (https://github.com/COMBINE-lab/wasabi) and data normalization and differential expression analysis was performed using Likelihood Ratio test (LRT) tests and gene-level p-value aggregation as implemented in Sleuth42,43. Normalized transcript abundances were aggregated to gene-level abundances using tximport44. Genes with mean TPM (across all thymocyte subtypes) of less than 1 were filtered out. Temporal clustering was performed using k-means clustering in R where seven clusters were the most informative. Gene set enrichment analysis was performed using GSEA (v4.3.3)45 on pre-ranked lists using default settings and the GO biological processes database. GO enrichment analysis was performed using PANTHER46 overrepresentation test (release 20240226) and the GO biological processes database. Transitional genes were identified by contrasting T-C and DPearly, DPlate and CD4SP, DPlate and CD8SP as well as CD4SP and CD8SP using Wald test (WT) and gene-level p-value aggregation as implemented in Sleuth42,43. The 20 genes with the largest difference in TPM (10 genes with higher TPM in either thymocyte subtype) for each individual contrast and with a P-value < 1 × 10−3 were selected.
Analysis of sex-biased gene expression in RNA-seq data
To determine sex-biased gene expression throughout thymocyte development, raw fastq reads were quality trimmed with FastP (v.0.23.4) using default settings. Transcriptome mapping was performed using Salmon (v1.10.2) (–gcBias –seqBias –numBootstraps 100) using known Refseq transcripts (NM_* and NR_*, excluding all Y-PAR transcripts) from the GRCh38.p12 assembly (GCF_000001405.38_GRCh38.p12_rna.fna.gz) as a reference. Abundance estimates were converted to h5 format using Wasabi (v1.0.1, https://github.com/COMBINE-lab/wasabi) and data normalization and male vs female log2-fold change (FC (log2)) was calculated using WT tests and gene-level p-value aggregation as implemented in Sleuth. When creating the sleuth object, transformation_function = function(x) log2(x + 0.5) was used to ensure that the WT test output log changes as log2. Normalized transcript abundances were aggregated to gene-level abundances using tximport44. Genes with a mean TPM (across all thymocyte subtypes) of less than 1 were filtered out. Genes with a P-value < 1 × 10−5 and an absolute FC (log2) > 0.2 were classified as sex-biased. To investigate sex-biased gene expression across multiple tissues, male and female samples for 47 tissues were downloaded from GTEx, aiming for 10 of each sex (see Supplementary Table 3 for complete list of tissues and sample counts). Briefly, data was downloaded from AnVIL using the Gen3 client (v1.0.0) as aligned BAM files, which were sorted and converted into fastq files using Samtools (v1.7)47 and finally processed through the pipeline described above but utilizing FastP (v.0.21.0) and Salmon (v0.7.2) instead. Genes with a mean TPM (calculated for each tissue individually) of less than 1 were excluded.
Isolation of primary immune cells
Peripheral blood mononuclear cells (PBMCs) were extracted from buffy coats using Lymphoprep (Axis Shield Poc As, 1114545). 35 ml blood was layered on 15 ml Lymphoprep and centrifuged at 800 × g for 30 minutes. The interphase containing PBMCs was transferred to a fresh falcon tube for DNA and RNA extraction or for isolation of CD4+ and CD8+ T cells. Naïve T cells were isolated from PBMCs with the Naive CD4+ T Cell Isolation Kit II (Miltenyi Biotec, 130-094-131) and the QuadroMACS Separator (LS Columns, Miltenyi Biotec, 130-042-401) as instructed by the manufacturer. CD4+ T cells were similarly isolated by magnetic bead separation using the CD4+ T Cell Isolation Kit (Miltenyi Biotec, 130-096-533). The CD4 negative fraction was further enriched for CD3+ and CD8+ cells by antibody staining and FACS sorting (Anti-CD3-Pacific Blue, clone UCHT1, BioLegend, 300418 and Anti-CD8-APC, clone RPA-T8, BD, 555369).
qPCR
Using qPCR, expression of selected genes on chromosome X was analyzed in primary immune cells, commercially available RNA samples from bone marrow (biochain, ATR1234024; Zyagen, HR-704; TaKaRa, 63659) and a panel of 15 further tissues (Ambion, AM6000). RNA was dsDNase I treated (Thermo Fisher, EN0771, 37 °C for 2 minutes) and converted to cDNA (High Capacity cDNA Reverse Transcription Kit, Applied Biosystems, 4368814, 37 °C for 2 hours, 85 °C for 5 minutes). Following, qPCR was carried out using Fast Universal PCR Master Mix (Thermo Fisher Scientific, 4352042) and TaqMan probes (Supplementary Table 5) on the QuantStudio 7 Real-Time PCR Systems (Thermo Fisher) for 40 cycles. Expression was analyzed relative to GAPDH expression (ΔCt).
Alignment method comparison
To compare how alignment method affects sex-bias quantification, GTEx RNA-seq data for 9 tissues was downloaded (see Supplementary Table 3 for complete list of tissues and sample counts) and aligned using either pseudo- or reference-based alignment. Briefly, data was downloaded from AnVIL using the Gen3 client as aligned BAM files, which were sorted and converted into BAM files with Samtools (v1.7). Raw fastq reads were quality trimmed with FastP (v.0.21.0) using default settings. For pseudo-alignment, the same pipeline as described under Analysis of sex-biased gene expression in RNA-seq data was used. For reference-based alignments, quality trimmed fastq reads were aligned with STAR 2-pass mode (v.2.7.6a)48 using an index built with GCA_000001405.15_GRCh38_no_alt_analysis_set.fna as the reference genome and –sjdbGTFfile gencode.v35.annotation.gtf. Following alignment, BAM files were sorted with Samtools (v1.7) and deduplicated with Sambamba (v0.7.1)49. To count reads featureCounts (v2.0.3)50 was used, specifying -p –countReadPairs -t exon -g gene_id -a gencode.v35.annotation.gtf. To obtain male vs female log2-fold change, edgeR (v. 3.28.1)51 glmQLFit was used. Genes with a mean transcript per million (TPM) < 1 were excluded.
Analysis of sex-biased gene expression in Affymetrix data
Pre-processed affymetrix data was obtained from GTEx and downloaded from GEO under accession number GSE45878. Log2 fold-change was calculated by using the following formula: log2(mean(female expression) / mean(male expression)).
HUMARA assay
200 ng of DNA from thymic lymphocytes and peripheral blood mononuclear cell (for females F1-3) or DPearly cells (for female F4) was incubated with the methyl-sensitive restriction enzyme HpaII (New England Biolabs, R0171; 10 U per reaction) in a total volume of 10 µl for 16 hours at 37 °C. A negative sample without HpaII was included for each DNA sample in all steps. Following, the restriction enzyme was heat inactivated by incubation at 80 °C for 20 minutes. 5 µl of digested and undigested DNA (equivalent to 100 ng DNA) was used in a PCR reaction for the CAG repeat in exon 1 of the AR gene on chromosome X (Supplementary Table 6). The forward primer was labeled with FAM while the reverse primer remained unlabeled. The PCR reaction had a total volume of 50 µl and included Phusion High-Fidelity DNA Polymerase (New England Biolabs, M0530; 1 U per reaction), 200 µM dNTPs and 500 nM of each primer. PCR cycling was as follows: initial denaturation at 98 °C for 30 seconds, followed by 27 cycles of 98 °C for 10 seconds, 62 °C for 30 seconds and 72 °C for 30 seconds; and a final extension at 72 °C for 5 minutes. 1 µl of the PCR fragments was size separated on a 3500 Genetic Analyzer (Applied Biosystems) using Hi-Di staining (Applied Biosystems, 4311320) and a LIZ 600 size standard (Applied Biosystems, 4366589). Analysis was done using the seqinr package52.
Whole exome sequencing
250 ng DNA from peripheral blood mononuclear cell (females F1-3) or DPearly cell (female F4) was diluted in 1X Tris-EDTA (Invitrogen, 12090015) to a volume of 130 µl and sonicated in the Covaris S220 to a fragment size of 200 – 300 basepairs. After sonication, fragmented DNA was concentrated to 50 µl in 1X Tris-EDTA with the DNA Clean & Concentrator kit (Zymo research, D4013) following the manufacturer’s instructions. Whole exome sequencing libraries were prepared with the SureSelect XT HS Reagent Kit for Illumina (ILM) platform (Agilent, G9702A) and target regions were enriched using probes for exons and UTRs (SureSelectXT Human All Exon V6 + UTR; Agilent, 5190-8881). The manufacturer’s instructions were followed with adapter-ligated genomic DNA libraries PCR amplified for 8 cycles before 1 µg of these libraries was used for exome+UTR capture. Enriched libraries were PCR amplified for 9 cycles. Library quality and size distribution was assessed with the TapeStation D1000 ScreenTape (Agilent, 5067-5582) and quantification was done on the Qubit Fluorometer with the 1X dsDNA HS Assay kit (Thermo Fisher, Q33231). Libraries were pooled and diluted to a concentration of 800 pM and sequenced on the NextSeq 2000 machine (NextSeq 1000/2000 P2 Reagents (300 Cycles) v3; Illumina, 20046813) with paired-end reads of 150 bp each and > 124 million read-pairs per sample.
Allele-specific expression analysis
For single nucleotide polymorphism (SNP) calling in thymocyte samples, whole exome sequencing (WES) raw fastq reads were quality trimmed using FastP40,41 (v.0.23.4) with default settings. BWA-MEM53 (v0.7.18) was used for mapping reads to the human genome build 38 (hg38, GCA_000001405.15_GRCh38_no_alt_analysis_set.fna) using default settings. Aligned reads were processed through the GATK54 best practice germline short variant discovery pipeline, using base quality score recalibration and local realignment at known indels (GATK v.4.5.0.0.). Indels (insertions and deletions) and SNPs were jointly called across all 4 samples. Default filters were applied to indel and SNP calls using the variant quality score recalibration (VQSR) approach of GATK. The thymocyte subpopulation RNA-seq raw fastq reads were quality trimmed using FastP (v.0.23.4) using default settings. RNA-seq reads were aligned with STAR 2-pass mode (v.2.7.11b) using an index built with GCA_000001405.15_GRCh38_no_alt_analysis_set.fna as the reference genome and –sjdbGTFfile gencode.v43.annotation.gtf. To reduce the issue of reference bias55, WASP filtering was performed. Briefly, heterozygous variants that passed VQSR filtering were extracted for each sample from the WES VCFs using GATK SelectVariants, and subsequently passed to STAR via –varVCFfile and–waspOutputMode. Reads that did not pass the WASP filtering were filtered out using bamtools56 (v2.5.1). Following data pre-processing, allele-specific expression (ASE) analysis of the allele counts for biallelic heterozygous variants were retrieved from RNA-seq data using GATK ASEReadCounter (v.4.5.0.0). Heterozygous variants that passed VQSR filtering were first extracted for each sample from WES VCFs using GATK SelectVariants. Sample-specific VCFs and RNA-seq BAMs were inputted to ASEReadCounter requiring minimum base quality (phred) of 20 in the RNA-seq data. For downstream processing of the ASE data, we applied further filters to the data to conservatively remove potentially spurious sites, requiring a variant call read depth of ≥20 reads per allele, excluding any variants in which the minor allele was less than 10% of the total read count and requiring an RNA-seq read depth of ≥10. In case of multiple ASE sites in a gene, only the site with the highest RNA-seq read count was included. When analyzing the minor allele read count a threshold of RNA-seq total read count ≥ 10 & WES total read count >20 was used to include more hSNPs but still only keep high-confidence calls. When investigating minor allele read counts, the allele with the fewest reads was assigned minor allele. For investigating the minor allele count of immune genes, a list of 86 immune genes was compiled from the literature28–30.
Illumina EPIC methylation array
250 ng of DNA from each thymocyte population from females F1, F3 and F4 was diluted in nuclease-free water and the Infinium MethylationEPIC BeadChip v1 (Illumina, WG-317) was run on the NextSeq 550 sequencing machine. In total three chips were processed at the same time with all samples from each female run on the same chip, resulting in six samples per chip (all six thymocyte populations for one female).
Thymocyte Illumina EPIC methylation array analysis
Genome-wide methylation profiling of normal human thymocyte DNA was performed using Illumina EPIC DNA methylation arrays. Raw data was pre-processed using the default parameters of the Chip Analysis Methylation Pipeline (ChAMP)57. The data was normalized using Beta-Mixture Quantile (BMIQ) normalization58. Hierarchical clustering was performed using pvclust59 and 10,000 bootstraps.
X-inactivation status categorization
Genes had their XCI status classified either by using a previous assessment10 or by performing our own classification. Briefly, genes were assigned as high-confidence escapees if either a) allele-specific expression was lower or equal to 0.4 or b) if the gene’s mean methylation −500 TSS value was below 0.25 and sex-biased expression above 0.2 log2FC. Genes with a mean methylation −500 TSS value below 0.25 and sex-biased expression above 0 but below 0.2 log2FC were assigned low-confidence escapees. Genes were assigned as inactive genes if a) allele-specific expression was higher than 0.4 or b) if the genes mean methylation −500 TSS value was above 0.25 and its sex-biased expression was below 0.2 log2FC. Genes that fell outside of these criteria were assigned “unclassified” status. This category thus includes genes that lack ASE coverage and either have a methylation value below 0.25 and a sex-bias below 0 log2FC or a methylation value above 0.25 but with a sex-bias above 0 log2FC.
X-chromosome repeat amplification
The polymorphic AR and RP2 repeats on the X-chromosome were amplified by PCR using FAM-labeled forward and unlabeled reverse primers (Supplementary Table 6). The PCR reaction had a total volume of 20 µl including 100 ng DNA from thymic lymphocytes of females F3-4 and the Turner syndrome patient (TS), Phusion High-Fidelity DNA Polymerase (0.4U per reaction; New England Biolabs, M0530), 400 µM dNTPs, 3% v/v DMSO, 400 nM of each AR-primer and 300 nM of each RP2-primer. PCR cycling was as follows: initial denaturation at 98 °C for 30 seconds followed by 30 cycles of 98 °C for 10 seconds, 63 °C for 30 seconds and 72 °C for 30 seconds. Finally, a final extension at 72 °C for 5 minutes was performed. The PCR product was diluted 1:10 in nuclease-free water and 1 µl of the diluted PCR fragments were size separated on a 3500 Genetic Analyzer (Applied Biosystems) using Hi-Di staining (Applied Biosystems, 4311320) and LIZ 600 size standard (Applied Biosystems, 4366589). The resulting electropherograms were visualized using the seqinr package52.
TCR repertoire analysis
To characterize the T cell receptor (TCR) repertoires in the thymocyte bulk RNA-seq data, the TRUST4 (v1.1.1)60 software was used. TRUST4 performs de novo assembly, annotation, and consensus assemblies of TCRs. Briefly, raw fastq reads were quality trimmed using FastP (v.0.23.4) using default settings and subsequently run through TRUST4 using default settings and provided reference files. The TRUST4 output was then analyzed with Immunarch (10.5281/zenodo.3367200). Prior to TCR analysis, data was downsampled with the repSample function to account for difference in sequencing depth. ETP and T-C cells were excluded from diversity score calculations given their inherently low diversity score. A Kruskal-Wallis test, correcting for multiple testing with the Holm method, was used to test for statistical significance in occupied repertoire space between the samples (Fig. 8e).
Smart-seq2 on sorted thymocyte populations
For one female individual (F4) we conducted single cell sequencing using the Smart-seq2 approach as described by Picelli et al.61,62. In brief, six thymocyte subpopulations were single cell sorted into 96-well PCR plates, directly into 4 µl lysis buffer (0.05% Triton X-100, 2.5 µM oligo-dT primers, 2.5 mM dNTPs, 2.5 mM RNaseOUT (Thermo Fisher, 10777019)). After denaturation of RNA at 72 °C for 3 minutes, 5.5 µl cDNA synthesis buffer was added to each well (100U SuperScrip II Reverse Transcriptase (Thermo Fisher, 18064071), 9 mM DTT, 1.5 M Betaine, 18 mM MgCl2, 1.8 µM LNA strand-switching primer, 4.5 mM RNaseOUT) and incubated at 42 °C for 90 minutes followed by 10 to 12 cycles (dependent on cell type) of 50 °C for 2 minutes and 42 °C for 2 minutes before a final incubation at 70 °C for 15 minutes. The resulting cDNA (10 µl) was amplified in a total volume of 25 µl using the KAPA HiFi HotStart ReadyMix PCR Kit (Roche, KK2602) for 22 to 24 cycles (dependent on cell type). After bead purification with AMPure XP beads (Beckman Colter, A63880) cDNA was quantified and quality was assessed on the Bioanalyzer (Agilent, 5067-4626). An average of 1.5 ng cDNA was tagmented using the Tn5 transposase in a total volume of 20 µl including 10 mM Tris-HCl, 5 mM MgCl2 and 10% Dimethylformamide for 10 minutes at 55 °C. The reaction was terminated by addition of 3.5 µl 0.2% Sodium dodecyl sulfate. Finally, sequencing indexes were attached and libraries were PCR amplified for 15 cycles using the KAPA HiFi PCR Kit (1U per reaction; Roche, KK2102). All single cell sequencing libraries of the same cell type were pooled and quantified before libraries were pooled and diluted further for sequencing on the NextSeq 2000 platform (150 bp paired-end, median number of raw reads per cell 0.87 M for all cell types).
Analysis of Smart-seq2
For the allele-specific expression analysis using Smart-seq2, the data was processed exactly like the bulk ASE data, however allowing several hetSNPs per gene, given that they pass the read count thresholds (see Allele-specific expression analysis for details). Clustering the cells into clusters was performed by first identifying cells with detected read counts for XIST and leveraging that allelic information to cluster other cells using other genes than XIST. Briefly, cells with XIST read counts were assigned into Cluster 1 or cluster 2 based on which allele was detected. Based on that clustering, inactive genes with a consistent monoallelic expression per cluster (ATRX, BEX4, ITM2A, LAMP2, MORF4L2, PIN4 and TMSB4X) were used to assign cells into clusters. Clustering results for each cell and which gene was used for the assignment can be found in Supplementary Data 9. Genes with a mean reference ratio between 0.1 and 0.9 (across all cells per cluster) were classified as escaping from XCI. This can be achieved in two ways, either by a) both reference and alternative allele being identified within the same cell or b) both reference and alternative allele being detected within the same cluster. hetSNPs were required to be detected in more than one cell. For gene expression quantification and UMAP generation, STAR and Seurat63,64 (v5.1.0) was utilized. Briefly, fastq reads were quality trimmed using FastP (v.0.23.4) using default settings. STAR (v.2.7.11b) was run with the following options: –soloType SmartSeq –soloUMIdedup Exact –soloStrand Unstranded –limitOutSJcollapsed 10000000 –soloCellFilter None, using GCA_000001405.15_GRCh38_no_alt_analysis_set.fna and gencode.v43.annotation.gtf for index generation. Downstream analysis of the data was performed using Seurat, excluding cells with a mitochondrial gene count >10%, cells with a higher ribosomal content than 20% and requiring a read count between 125k and 1 M per cell. Briefly, data was normalized using the SCTransform function (vst.flavor = v2), variable features identified with FindVariableFeatures (selection.method = “vst”, nfeatures = 2000), followed by ScaleData (default settings), RunPCA (npcs = 30), FindNeighbors (dims = 1:10) and finally runUMAP (dims = 1:10, n_neighbors = 30).
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Source data
Acknowledgements
Work in the lab of C.E.N was supported by grants from the Swedish Research Council (2020-01277_VR), the Swedish Cancer Foundation (20:1231:PjF) and the Joanna Cocozza Foundation (2020:Nestor). Work in the lab of O.E was supported by grants from the Swedish Research Council (2018-02752 and 2022-00781) and the medical education and research agreement (ALF:GBG-965795).
Author contributions
C.E.N., O.E., and A.L. managed and designed the study. B.G. and A.L. analyzed the data. M.B., V.H., C.L., A.C., D.G., H.Z., and A.S. performed experiments. B.G., A.L., C.E.N., O.E., and M.B. wrote the manuscript.
Peer review
Peer review information
Nature Communications thanks Laura Jardine, Geraldo Passos and the other anonymous reviewer(s) for their contribution to the peer review of this work.
Funding
Open access funding provided by Linköping University.
Data availability
All sequencing data generated in this study (including bulk and single-cell RNA-seq, whole exome sequencing and EPIC array data) have been deposited in the Swedish National Data Service (SND, https://snd.gu.se/, a data repository certified by Core Trust Seal) under accession code 2022-112-1 [10.5878/ayae-p143]. Access to restricted data will require completion of a Data Access Request (DAR) via the SND website. Each Data Access Request will be evaluated individually according to Swedish legislation. Source data are provided with this paper.
Code availability
All code to reproduce figures is available at 10.5281/zenodo.13933086.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Björn Gylemo, Maike Bensberg, Viktoria Hennings, Christina Lundqvist.
These authors jointly supervised this work: Antonio Lentini, Olov Ekwall, Colm E. Nestor.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-024-54110-7.
References
- 1.Fink, A. L., Engle, K., Ursin, R. L., Tang, W. Y. & Klein, S. L. Biological sex affects vaccine efficacy and protection against influenza in mice. Proc. Natl Acad. Sci. USA115, 12477–12482 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Klein, S. L. & Flanagan, K. L. Sex differences in immune responses. Nat. Rev. Immunol.16, 626–638 (2016). [DOI] [PubMed] [Google Scholar]
- 3.Takahashi, T. et al. Sex differences in immune responses that underlie COVID-19 disease outcomes. Nature588, 315–320 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Hewagama, A., Patel, D., Yarlagadda, S., Strickland, F. M. & Richardson, B. C. Stronger inflammatory/cytotoxic T-cell response in women identified by microarray analysis. Genes Immun.10, 509–516 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Nalbandian, G. & Kovats, S. Understanding sex biases in immunity: effects of estrogen on the differentiation and function of antigen-presenting cells. Immunol. Res31, 91–106 (2005). [DOI] [PubMed] [Google Scholar]
- 6.Sarmiento, L., Svensson, J., Barchetta, I., Giwercman, A. & Cilio, C. M. Copy number of the X-linked genes TLR7 and CD40L influences innate and adaptive immune responses. Scand. J. Immunol.90, e12776 (2019). [DOI] [PubMed] [Google Scholar]
- 7.Youness, A., Miquel, C. H. & Guery, J. C. Escape from X chromosome inactivation and the female predominance in autoimmune diseases. Int. J. Mol. Sci.22, 1114 (2021). [DOI] [PMC free article] [PubMed]
- 8.Pido-Lopez, J., Imami, N. & Aspinall, R. Both age and gender affect thymic output: more recent thymic migrants in females than males as they age. Clin. Exp. Immunol.125, 409–413 (2001). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Heard, E., Clerc, P. & Avner, P. X-chromosome inactivation in mammals. Annu Rev. Genet31, 571–610 (1997). [DOI] [PubMed] [Google Scholar]
- 10.Tukiainen, T. et al. Landscape of X chromosome inactivation across human tissues. Nature550, 244–248 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Carrel, L. & Willard, H. F. X-inactivation profile reveals extensive variability in X-linked gene expression in females. Nature434, 400–404 (2005). [DOI] [PubMed] [Google Scholar]
- 12.Souyris, M. et al. TLR7 escapes X chromosome inactivation in immune cells. Sci Immunol3, eaap8855 (2018). [DOI] [PubMed]
- 13.Syrett, C. M. et al. Altered X-chromosome inactivation in T cells may promote sex-biased autoimmune diseases. JCI Insight4, e126751 (2019). [DOI] [PMC free article] [PubMed]
- 14.Wang, J. et al. Unusual maintenance of X chromosome inactivation predisposes female lymphocytes for increased expression from the inactive X. Proc. Natl Acad. Sci. USA113, E2029–E2038 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Park, J. E. et al. A cell atlas of human thymic development defines T cell repertoire formation. Science367, eaay3224 (2020). [DOI] [PMC free article] [PubMed]
- 16.Roels, J. et al. Distinct and temporary-restricted epigenetic mechanisms regulate human alphabeta and gammadelta T cell development. Nat. Immunol.21, 1280–1292 (2020). [DOI] [PubMed] [Google Scholar]
- 17.Hosokawa, H. & Rothenberg, E. V. How transcription factors drive choice of the T cell fate. Nat. Rev. Immunol.21, 162–176 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Lavaert, M. et al. Integrated scRNA-Seq identifies human postnatal thymus seeding progenitors and regulatory dynamics of differentiating immature thymocytes. Immunity52, 1088–1104.e1086 (2020). [DOI] [PubMed] [Google Scholar]
- 19.Carpenter, A. C. & Bosselut, R. Decision checkpoints in the thymus. Nat. Immunol.11, 666–673 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Lentini, A. et al. Elastic dosage compensation by X-chromosome upregulation. Nat. Commun.13, 1854 (2022). [DOI] [PMC free article] [PubMed]
- 21.Roy, S. & Batra, L. Protein phosphatase 2A: role in T cells and diseases. J. Immunol. Res.2023, 4522053 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Xing, Y., Wang, X., Igarashi, H., Kawamoto, H. & Sakaguchi, N. Protein phosphatase subunit G5PR that regulates the JNK-mediated apoptosis signal is essential for the survival of CD4 and CD8 double-positive thymocytes. Mol. Immunol.45, 2028–2037 (2008). [DOI] [PubMed] [Google Scholar]
- 23.Zheng, M. et al. Protein phosphatase 2A has an essential role in promoting thymocyte survival during selection. Proc. Natl Acad. Sci. USA116, 12422–12427 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Olney, K. C., Brotman, S. M., Andrews, J. P., Valverde-Vesling, V. A. & Wilson, M. A. Reference genome and transcriptome informed by the sex chromosome complement of the sample increase ability to detect sex differences in gene expression from RNA-Seq data. Biol. Sex. Differ.11, 42 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Allen, R. C., Zoghbi, H. Y., Moseley, A. B., Rosenblatt, H. M. & Belmont, J. W. Methylation of HpaII and HhaI sites near the polymorphic CAG repeat in the human androgen-receptor gene correlates with X chromosome inactivation. Am. J. Hum. Genet51, 1229–1239 (1992). [PMC free article] [PubMed] [Google Scholar]
- 26.Savarese, F., Flahndorfer, K., Jaenisch, R., Busslinger, M. & Wutz, A. Hematopoietic precursor cells transiently reestablish permissiveness for X inactivation. Mol. Cell Biol.26, 7167–7177 (2006). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Syrett, C. M., Sierra, I., Beethem, Z. T., Dubin, A. H. & Anguera, M. C. Loss of epigenetic modifications on the inactive X chromosome and sex-biased gene expression profiles in B cells from NZB/W F1 mice with lupus-like disease. J. Autoimmun.107, 102357 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Libert, C., Dejager, L. & Pinheiro, I. The X chromosome in immune functions: when a chromosome makes the difference. Nat. Rev. Immunol.10, 594–604 (2010). [DOI] [PubMed] [Google Scholar]
- 29.Meester, I. et al. SeXY chromosomes and the immune system: reflections after a comparative study. Biol. Sex. Differ.11, 3 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Spolarics, Z., Pena, G., Qin, Y., Donnelly, R. J. & Livingston, D. H. Inherent X-linked genetic variability and cellular mosaicism unique to females contribute to sex-related differences in the innate immune response. Front Immunol.8, 1455 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Tomofuji, Y. et al. Quantification of escape from X chromosome inactivation with single-cell omics data reveals heterogeneity across cell types and tissues. Cell Genom, 4, 100625 (2024). [DOI] [PMC free article] [PubMed]
- 32.Wainer Katsir, K. & Linial, M. Human genes escaping X-inactivation revealed by single cell expression data. BMC Genomics20, 201 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Huret, C. et al. Altered X-chromosome inactivation predisposes to autoimmunity. Sci. Adv.10, eadn6537 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Kawashima, S. et al. Methylation status of genes escaping from X-chromosome inactivation in patients with X-chromosome rearrangements. Clin. Epigenetics13, 134 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Basilicata, M. F. et al. De novo mutations in MSL3 cause an X-linked syndrome marked by impaired histone H4 lysine 16 acetylation. Nat. Genet50, 1442–1451 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Brunet, T. et al. Defining the genotypic and phenotypic spectrum of X-linked MSL3-related disorder. Genet Med23, 384–395 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Ruckle, C. et al. RNA stability controlled by m(6)A methylation contributes to X-to-autosome dosage compensation in mammals. Nat. Struct. Mol. Biol.30, 1207–1215 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Faucillion, M. L. & Larsson, J. Increased expression of X-linked genes in mammals is associated with a higher stability of transcripts and an increased ribosome density. Genome Biol. Evol.7, 1039–1052 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Patro, R., Duggal, G., Love, M. I., Irizarry, R. A. & Kingsford, C. Salmon provides fast and bias-aware quantification of transcript expression. Nat. methods14, 417–419 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Chen, S. Ultrafast one-pass FASTQ data preprocessing, quality control, and deduplication using fastp. Imeta2, e107 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Chen, S., Zhou, Y., Chen, Y. & Gu, J. fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics34, i884–i890 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Pimentel, H., Bray, N. L., Puente, S., Melsted, P. & Pachter, L. Differential analysis of RNA-seq incorporating quantification uncertainty. Nat. Methods14, 687–690 (2017). [DOI] [PubMed] [Google Scholar]
- 43.Yi, L., Pimentel, H., Bray, N. L. & Pachter, L. Gene-level differential analysis at transcript-level resolution. Genome Biol.19, 53 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Soneson, C., Love, M. I. & Robinson, M. D. Differential analyses for RNA-seq: transcript-level estimates improve gene-level inferences. F1000Res4, 1521 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Subramanian, A. et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc. Natl. Acad. Sci. USA102, 15545–15550 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Mi, H. et al. PANTHER version 16: a revised family classification, tree-based classification tool, enhancer regions and extensive API. Nucleic Acids Res.49, D394–D403 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Danecek, P. et al. Twelve years of SAMtools and BCFtools. Gigascience10 (2021). [DOI] [PMC free article] [PubMed]
- 48.Dobin, A. et al. STAR: ultrafast universal RNA-seq aligner. Bioinformatics29, 15–21 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Tarasov, A., Vilella, A. J., Cuppen, E., Nijman, I. J. & Prins, P. Sambamba: fast processing of NGS alignment formats. Bioinformatics31, 2032–2034 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Liao, Y., Smyth, G. K. & Shi, W. featureCounts: an efficient general purpose program for assigning sequence reads to genomic features. Bioinformatics30, 923–930 (2014). [DOI] [PubMed] [Google Scholar]
- 51.Robinson, M. D., McCarthy, D. J. & Smyth, G. K. edgeR: a bioconductor package for differential expression analysis of digital gene expression data. Bioinformatics26, 139–140 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Charif, D., Thioulouse, J., Lobry, J. R. & Perriere, G. Online synonymous codon usage analyses with the ade4 and seqinR packages. Bioinformatics21, 545–547 (2005). [DOI] [PubMed] [Google Scholar]
- 53.Li, H. & Durbin, R. Fast and accurate long-read alignment with Burrows-Wheeler transform. Bioinformatics26, 589–595 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Castel, S. E., Levy-Moonshine, A., Mohammadi, P., Banks, E. & Lappalainen, T. Tools and best practices for data processing in allelic expression analysis. Genome Biol.16, 195 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.van de Geijn, B., McVicker, G., Gilad, Y. & Pritchard, J. K. WASP: allele-specific software for robust molecular quantitative trait locus discovery. Nat. Methods12, 1061–1063 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Barnett, D. W., Garrison, E. K., Quinlan, A. R., Stromberg, M. P. & Marth, G. T. BamTools: a C++ API and toolkit for analyzing and managing BAM files. Bioinformatics27, 1691–1692 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Morris, T. J. et al. ChAMP: 450k chip analysis methylation pipeline. Bioinformatics30, 428–430 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Teschendorff, A. E. et al. A beta-mixture quantile normalization method for correcting probe design bias in Illumina Infinium 450 k DNA methylation data. Bioinformatics29, 189–196 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Suzuki, R. & Shimodaira, H. Pvclust: an R package for assessing the uncertainty in hierarchical clustering. Bioinformatics22, 1540–1542 (2006). [DOI] [PubMed] [Google Scholar]
- 60.Song, L. et al. TRUST4: immune repertoire reconstruction from bulk and single-cell RNA-seq data. Nat. methods18, 627–630 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Picelli, S. et al. Full-length RNA-seq from single cells using Smart-seq2. Nat. Protoc.9, 171–181 (2014). [DOI] [PubMed] [Google Scholar]
- 62.Picelli, S. et al. Smart-seq2 for sensitive full-length transcriptome profiling in single cells. Nat. methods10, 1096–1098 (2013). [DOI] [PubMed] [Google Scholar]
- 63.Satija, R., Farrell, J. A., Gennert, D., Schier, A. F. & Regev, A. Spatial reconstruction of single-cell gene expression data. Nat. Biotechnol.33, 495–502 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Hao, Y. et al. Dictionary learning for integrative, multimodal and scalable single-cell analysis. Nat. Biotechnol.42, 293–304 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All sequencing data generated in this study (including bulk and single-cell RNA-seq, whole exome sequencing and EPIC array data) have been deposited in the Swedish National Data Service (SND, https://snd.gu.se/, a data repository certified by Core Trust Seal) under accession code 2022-112-1 [10.5878/ayae-p143]. Access to restricted data will require completion of a Data Access Request (DAR) via the SND website. Each Data Access Request will be evaluated individually according to Swedish legislation. Source data are provided with this paper.
All code to reproduce figures is available at 10.5281/zenodo.13933086.