Abstract
DNA methylation influences predisposition, development and prognosis for many diseases, including cancer. However, it is not uncommon to encounter samples with incorrect sex labelling or atypical sex chromosome arrangement. Sex is one of the strongest influencers of the genomic distribution of DNA methylation and, therefore, correct assignment of sex and filtering of abnormal samples are essential for the quality control of study data. Differences in sex chromosome copy numbers between sexes and X-chromosome inactivation in females result in distinctive sex-specific patterns in the distribution of DNA methylation levels. In this study, we present a software tool, sEst, which incorporates clustering analysis to infer sex and to detect sex-chromosome abnormalities from DNA methylation microarray data. Testing with two publicly available datasets demonstrated that sEst not only correctly inferred the sex of the test samples, but also identified mislabelled samples and samples with potential sex-chromosome abnormalities, such as Klinefelter syndrome and Turner syndrome, the latter being a feature not offered by existing methods. Considering that sex and the sex-chromosome abnormalities can have large effects on many phenotypes, including diseases, our method can make a significant contribution to DNA methylation studies that are based on microarray platforms.
Keywords: DNA methylation, sex information, sex-chromosome abnormalities, epigenetics
1. Introduction
DNA methylation is a major mechanism in the regulation of gene expression, and, consequently, plays an important role in disease susceptibility and progression [1,2]. The current pre-eminent DNA methylation microarray systems are Illumina’s Infinium HumanMethylation450 BeadChip (HM450k) and Infinium MethylationEPIC BeadChip (EPIC), which enable genome-wide analysis at relatively low cost, measuring the DNA methylation level of approximately 480,000 (HM450k) or 850,000 (EPIC) sites across the genome via site-specific oligonucleotide probes. Each site is associated with three values: a methylated signal; an unmethylated signal; and a detection p-value. The methylated and unmethylated signals are used to calculate methylation levels, represented as beta-values ranging from 0 (fully unmethylated status) to 1 (fully methylated status). The detection p-values indicate the quality of the signals and are determined by comparing the strength of signal to background noise.
Quality control is an important component of any screening approach, including the validation of specimen identity. Sex is one of the strongest influencers of the genomic distribution of DNA methylation and sample traits across differential effect studies and has a particular influence on predisposition, development, and prognosis for many diseases, including cancers [3,4]. However, many publicly available methylation datasets contain erroneous sex labels [5]. Qian and colleagues described a method for independently inferring the sex of screening specimens from single nucleotide polymorphism (SNP)-based microarray data [6]. The R-packages minfi [7] and RnBeads [8] are two of the most commonly used R packages for the analysis of HM450k data, providing the ‘getSex’ and ‘rnb.execute.gender.prediction’ functions, respectively. The ‘getSex’ function of minfi estimates the copy number of sex chromosomes from the total signal intensities (the sum of methylated and unmethylated signals) for the sex chromosomes and predicts sex as either male or female [7], expecting one X chromosome (chrX) and one Y chromosome (chrY) for typical males and two chrX and no chrY for typical females. Similarly, the ‘rnb.execute.gender.prediction’ function of RnBeads uses the increase in total signal intensities on sex-chromosomes compared to autosomes to infer sex [8]. However, the binary classification of sex by minfi and RnBeads is inappropriate in cases of sex-chromosome abnormalities, such as Klinefelter syndrome (males with two or more chrX) or Turner syndrome (females with only one chrX). Previous studies have shown that Klinefelter syndrome is the most common sex-chromosome disorder, affecting approximately 1 in 600 men, and that Turner syndrome occurs in approximately 1 in every 2000 live female births [9,10]. Klinefelter syndrome is an underdiagnosed condition [9], implying that it is not uncommon to inadvertently include Klinefelter syndrome individuals in studies featuring several hundred or more male samples. These abnormal sex-chromosome states should be properly accounted for in the analyses, since they confer increased risk for various diseases [11,12,13,14].
The difference in sex chromosome copy numbers between sexes and X chromosome inactivation (XCI) in females result in distinctive beta-value distributions between sexes regardless of tissue [15]. Additionally, the absence of chrY in females should have an apparent effect on the detection p-value distribution. In this study, we developed a software tool as an open source R package, sEst, that infers sex and sex chromosomal abnormalities from the distribution pattern of beta-values and detection p-values on the sex chromosomes.
2. Results
2.1. Clustering of Samples and Selection of Reference Samples
A total of 2000 samples (1000 male samples and 1000 female samples) were selected at random from the datasets after quality control to examine the distribution patterns of each sex. For each of these samples, the proportion of probes within 10 equally distributed beta-value intervals (0 to 1 with increments of 0.1) and 3 detection p-value intervals (less than 1 × 10−5, 1 × 10−5 to 1 × 10−2 and 1 × 10−2 to 1) were calculated for each sex chromosome. The beta-value (on chrX and chrY) and detection p-value (on chrY) proportions exhibited different distributions between males and females (Figure 1). The combined distribution profile of the beta-values and detection p-values of chrX and chrY were submitted separately to principal component analysis (PCA.X and PCA.Y respectively) followed by k-means clustering (k = 2). When the clustering results from PCA.X and PCA.Y were combined, the vast majority of female-labelled samples (992 of 1000) were in cluster ‘1’ by both PCA.X and PCA.Y (‘1/1’), and the vast majority of male-labelled samples (998 of 1000) were in cluster ‘2’ by both PCA.X and PCA.Y (‘2/2’) (Table 1). When plotted using the first principal component of PCA.X and PCA.Y, cluster ‘1/1’ samples were clearly separate from cluster ‘2/2’ samples (Figure 2). Based on their relative proximity to the cluster centres, 873 of the 992 samples in cluster ‘1/1’ and 868 of the 998 samples in cluster ‘2/2’ were retained as reference female and reference male samples, respectively (Figure 2). The beta-value proportions for the reference samples were pre-calculated for 100 intervals (0 < β ≤ 0.01, 0.01 < β ≤ 0.02, …, 0.99 < β ≤ 1), and the detection p-value proportions for the reference samples were pre-calculated for 18 intervals (p ≤ 1 × 10−17, 1 × 10−17 < p ≤ 1 × 10−16, …, 0.1 < p ≤ 1). These pre-calculated proportion tables were used to build a reference proportion table according to the user-provided intervals for beta-value and detection p-value.
Table 1.
Labelled Sex | Cluster by PCA.X/Cluster by PCA.Y | |||
---|---|---|---|---|
1/1 | 1/2 | 2/1 | 2/2 | |
Female | 992 | 4 | 0 | 4 |
Male | 1 | 1 | 0 | 998 |
2.2. Sex Estimation Method
The beta-value and detection p-value distributions of male and female reference samples were used to estimate the sex of test samples according to the following Algorithm 1.
Algorithm 1: sEst |
1: Build a table of beta-value/detection p-value distributions for new samples:
|
2: Combine the distribution tables for new samples with that representing reference samples. |
3: Run principal component analysis (PCA) on beta-value and detection p-value distributions for each sex chromosome (PCA.X: PCA on chrX; PCA.Y: PCA on chrY). |
4: Run k-means clustering (k = 2) on PCA.X and assign ‘f’ to the test samples that cluster with female reference samples, and ‘m’ to those that cluster with male reference samples. |
5: Run k-means clustering (k = 2) on PCA.Y and assign ‘f’ to the test samples that cluster with female reference samples, and ‘m’ to those that cluster with male reference samples. |
6: Predict sex:
|
2.3. Features
The main function of the sEst package is ‘estimateSex’, which applies the sex-estimation method to the input samples. The sEst package also provides two functions for visualization. The ‘plotSexEstimation’ function plots the first component of the PCA of the chrX profiles (X.PC1) against the first component of the chrY profiles (Y.PC1) with or without the reference samples, and ‘plotSexDistribution’ generates a line chart showing the beta-value distribution for chrX and chrY and detection p-value distribution for chrY. More details and example codes can be found on the website for this tool [16].
2.4. Sex-Prediction in the Test Samples
The ‘estimateSex’ function was applied to 2788 test samples, which excluded the 2000 randomly selected samples from the 4788 quality-controlled samples from 12 GEO datasets (Figure 3). For the vast majority of samples with sex information, sEst predicted the sex as labelled (99.26% of male-labelled; 98.5% of female-labelled), and all 96 samples without sex information were estimated as either M (Male) or F (Female) (Table 2 and Figure S1). However, nine male-labelled samples and four female-labelled samples were predicted as the opposite sex (discordant) (Table 2), and 13 samples were predicted as ‘N’ (N-samples) (Table 2). The beta-value/detection p-value distributions of discordant samples clearly show the pattern of the predicted sex, suggesting that their sex was most likely mislabelled (Figure 4). The sex of seven discordant samples was re-estimated in a previous study, which used the methylation level of a few methylation sites known to be differentially methylated between sexes [5]. The re-estimated sex in the previous study was concordant with the prediction by sEst for five samples that were predicted as either M or F by sEst (Table S3). Eight of the 13 N-samples displayed clear female-like chrX and male-like chrY patterns, consistent with Klinefelter syndrome (male with more than one chrX). One N-sample (GSM1572595) displayed a male-like chrX pattern and a female-like chrY pattern, consistent with Turner syndrome (female with one chrX) (Figure 5 and Figure S2). Following the classification by sEst, we discovered that this sample had indeed been extracted from an individual with Turner syndrome in the corresponding study [17], thus validating our prediction. Four N-samples displayed slightly shifted beta-value distribution patterns but otherwise had very similar profiles to other male samples. These were re-estimated as male when wider beta-value intervals were applied (Figures S3 and S4).
Table 2.
Labelled | Predicted | Total | ||
---|---|---|---|---|
F (%) | M (%) | N (%) | ||
F | 787 (98.50) | 4 (0.50) | 8 (1.00) | 799 |
M | 9 (0.48) | 1879 (99.26) | 5 (0.26) | 1893 |
(subtotal) | 796 (29.57) | 1883 (69.95) | 13 (0.48) | 2692 |
UNKNOWN | 47 (48.96) | 49 (51.04) | 0 (0) | 96 |
Total | 843 (30.24) | 1932 (69.30) | 13 (0.47) | 2788 |
Percentages were calculated relative to the total counts in the right-most column. N: N-samples which are the samples showing atypical patterns.
2.5. Comparison with Existing Method
In addition to the 2788 test samples from 12 GEO datasets, raw data files (idat files) for 845 samples from GSE51032 were downloaded for the performance comparison of sEst with the ‘getSex’ function of the minfi package [7] and the ‘rnb.execute.gender.prediction’ function of the RnBeads package [8]. Their beta-values and detection p-values were extracted using the minfi package [7]. The quality-control procedure (see above) removed one sample due to a high percentage (>5%) of chrX probes with a detection p-value ≥ 0.01, leaving 844 samples for analysis. The sEst package predicted 655 samples as F, 187 samples as M, and two samples as N (Table 3). The two N-samples were labelled as female, and the female-predicted samples and male-predicted samples included five male-labelled samples and five female-labelled samples, respectively. Minfi’s ‘getSex’ function, using the default options, predicted 624 samples as F and 220 samples as M (Table 3), which was markedly different from both the sEst result and the prior sex-label. This discrepancy was caused by the smaller difference (in absolute value) between the median log2-signal intensity of chrX (xMed) and the median log2-signal intensity of chrY (yMed) for 32 female-predicted samples (Figure 6A). Changing the cut-off of ‘yMed minus xMed’ to ‘−1’ reclassified these 32 samples as Male, making the sex-predictions of ‘getSex’ consistent with those of sEst, except for the two N-samples (Table 3). The ‘rnb.execute.gender.prediction’ function of the RnBeads package also misclassified 128 samples (Figure 6B and Table 3), due to similar reasons as for the minif function. While the two N-samples were previously labelled as female, both ‘getSex’ and ‘rnb.execute.gender.prediction’ predicted one as F and the other as M (Table 3). However, the beta-value/detection p-value distribution profiles clearly showed female-like profiles for chrX and male-like profiles for chrY (Figure 7).
Table 3.
sEst | Labelled | Minfi (Default) | Minfi (Cut-Off: −1) | RnBeads | ||||
---|---|---|---|---|---|---|---|---|
F | M | F | M | F | M | F | M | |
F | 650 | 5 | 623 | 32 | 655 | 0 | 527 | 128 |
M | 5 | 182 | 0 | 187 | 0 | 187 | 0 | 187 |
N | 2 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
Total | 657 | 187 | 624 | 220 | 656 | 188 | 528 | 316 |
3. Discussion
Human error in labelling sample information occurs more frequently than one may assume, even for simple characteristics, such as sex [5]. As sex can have profound effects on study, mislabelling can result in false conclusions from the analysis of study data. In most cases, quality-control procedures preceding analysis should be able to identify and correct (or exclude) samples with mislabelled sex information. Illumina’s BeadChip-based platforms for DNA methylation profiling have been available for several years, and the ‘getSex’ method of sex-estimation has also been available for years within the package minfi [7]. Although ‘getSex’ successfully makes a correct sex-prediction in most cases, it is not effective at tagging samples with ambiguous patterns of beta-values and detection p-values on the sex chromosomes, as demonstrated in the present study. We have demonstrated that our method, sEst, significantly improves upon minfi by using typical beta-value and detection p-value distribution profiles for the sex-chromosomes as references to infer the sex of test samples and to detect samples with abnormal sex-chromosomes. Another R-package, RnBeads [8], also provides a function for sex-prediction, called ‘rnb.execute.gender.prediction’, which made an identical sex-prediction for the two N-samples of GSE51032 to the ‘getSex’ function of the minfi package. Given that the ‘rnb.execute.gender.prediction’ also uses signal intensity for sex-prediction, sEst holds the same advantages for sex-prediction over this package as it does over minfi. The reference profiles were compiled from a set of male and female samples that were randomly selected and refined from a large accumulation of HM450k data from public domains. These selected samples are from various tissues. However, this should have little to no effect to the reference profile, because the overall beta-value distribution is consistent across tissues as evidenced by the sex-chromosomes [15]. Although Illumina’s EPIC array, the successor of HM450k microarray, is becoming more popular for microarray-based methylation studies, we were unable to utilize EPIC array data for the development of this tool due to its scarcity in public data repositories. However, as the EPIC platform contains the vast majority of methylation sites targeted by the HM450k platform, sEst can be directly applied to EPIC array data. Combining the distribution profiles of test samples with those of reference samples for sex-prediction prevents issues that can arise from a dataset that is heavily biased towards either sex. The use of distributions of beta-values and detection p-values eliminates the need for raw data files (idat), which are needed by the minfi package but are often absent from public databases, and negates the requirement for normalisation as variation in methylation status at individual sites has minimal influence on the distribution profiles. The results of sEst consistently agree with sex predictions made by ‘getSex’ in cases where the methylation distribution profile is clearly either male-like or female-like. Furthermore, our method also tags samples that are too ambiguous for simple binary sex-prediction, alerting researchers to investigate further. This achieves a critical goal of quality control not well supported by prior methods. For example, one of the two N-samples in the GSE51032 dataset was located near the threshold line for sex-prediction by minfi and could possibly have attracted the attention of researchers using the dataset, but the other would hardly attract any attention for further examination as it was clustered with other female-predicted samples (Figure 6A), when in fact it shows male-like chrY profiles in the sEst result (Figure 7). While the lack of HM450k data from Klinefelter syndrome individuals in the public databases makes it hard to cross-check the N-samples in the GSE51032 dataset, the male-like chrY profiles and the female-like chrX profile suggest the existence of a single copy of chrY and two copies of chrX, whether as two whole chromosomes or as mosaicism, with one being heavily methylated. Two copies of chrX and one copy of chrY are the characteristics of Klinefelter syndrome. Klinefelter syndrome is the most common sex-chromosome disorder and yet is severely underdiagnosed [9], which implies that it would not be unlikely to have a number of Klinefelter syndrome samples in a study involving hundreds or more male samples.
The convenience and accuracy of sEst for sex-prediction and its ability to identify abnormal samples, which could be extracted from individuals with suspected Klinefelter syndrome or Turner syndrome, will make an important contribution to the accuracy of microarray-based DNA methylation data analyses, especially in contexts involving large sample numbers, including meta-analyses that combine datasets from public databases.
4. Materials and Methods
Data Collection and Processing
Publicly available HM450k data for a total of 4801 samples, which were extracted from various normal tissues, were downloaded from 12 different sources in the Gene Expression Omnibus (GEO) [18,19] to derive beta-values and detection p-values (Table S1). These data include 3087 specimens labelled as male, 2460 labelled as female, and 99 samples without sex information. Raw beta-values were either directly downloaded or calculated from raw methylated and unmethylated signals using the method described by Du and colleagues [20]. Under the assumption that the proportion of probes with an unreliable detection p-value (≥0.01) should be consistent across all chromosomes, 13 samples that had a detection p-value ≥ 0.01 for more than 5% of chrX probes were excluded as a quality control measure, leaving 4788 samples for method development and testing.
Acknowledgments
We are grateful to Mike Kuiper (The Commonwealth Scientific and Industrial Research Organisation) and Gayle Philip (The University of Melbourne) for useful discussions.
Supplementary Materials
Supplementary materials can be found at http://www.mdpi.com/1422-0067/19/10/3172/s1.
Author Contributions
C.J. conceived of the study, developed the software package, and drafted the manuscript. D.J.P., P.G., K.M., R.L.M., M.C.S. and B.J.P. discussed the results and contributed to writing the manuscript. Writing-Review & Editing, D.J.P., P.G., K.M., R.L.M., M.C.S.; Visualization, C.J; Supervision, B.J.P.; Project Administration, B.J.P.; Funding Acquisition, M.C.S. All authors read and approved the final version of the manuscript.
Funding
This research was funded in part by the Australian National Health and Medical Research Council (NHMRC) Research Fellowship (SRF) APP1061177 to M.C.S. There was no additional external funding received for this study. The APC was funded by Melbourne Bioinformatics.
Conflicts of Interest
The authors declare that they have no competing interests.
References
- 1.Petronis A. Epigenetics as a unifying principle in the aetiology of complex traits and diseases. Nature. 2010;465:721–727. doi: 10.1038/nature09230. [DOI] [PubMed] [Google Scholar]
- 2.Kulis M., Esteller M. DNA methylation and cancer. Adv. Genet. 2010;70:27–56. doi: 10.1016/B978-0-12-380866-0.60002-2. [DOI] [PubMed] [Google Scholar]
- 3.Dorak M.T., Karpuzoglu E. Gender differences in cancer susceptibility: An inadequately addressed issue. Front. Genet. 2012;3:268. doi: 10.3389/fgene.2012.00268. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Ober C., Loisel D.A., Gilad Y. Sex-specific genetic architecture of human disease. Nat. Rev. Genet. 2008;9:911–922. doi: 10.1038/nrg2415. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Kim J.H., Park J.-L., Kim S.-Y. Non-negligible Occurrence of Errors in Gender Description in Public Data Sets. Genomics Inform. 2016;14:34–40. doi: 10.5808/GI.2016.14.1.34. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Qian D.C., Busam J.A., Xiao X., O’Mara T.A., Eeles R.A., Schumacher F.R., Phelan C.M., Amos C.I. seXY: A tool for sex inference from genotype arrays. Bioinformatics. 2017;33:561–563. doi: 10.1093/bioinformatics/btw696. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Aryee M.J., Jaffe A.E., Corrada-Bravo H., Ladd-Acosta C., Feinberg A.P., Hansen K.D., Irizarry R.A. Minfi: A flexible and comprehensive Bioconductor package for the analysis of Infinium DNA methylation microarrays. Bioinformatics. 2014;30:1363–1369. doi: 10.1093/bioinformatics/btu049. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Assenov Y., Müller F., Lutsik P., Walter J., Lengauer T., Bock C. Comprehensive analysis of DNA methylation data with RnBeads. Nat. Methods. 2014;11:1138–1140. doi: 10.1038/nmeth.3115. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Bojesen A., Gravholt C.H. Klinefelter syndrome in clinical practice. Nat. Clin. Pract. Urol. 2007;4:192–204. doi: 10.1038/ncpuro0775. [DOI] [PubMed] [Google Scholar]
- 10.Donaldson M.D.C., Gault E.J., Tan K.W., Dunger D.B. Optimising management in Turner syndrome: From infancy to adult transfer. Arch. Dis. Child. 2006;91:513–520. doi: 10.1136/adc.2003.035907. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Elsheikh M., Wass J.A.H., Conway G.S. Autoimmune thyroid syndrome in women with Turner’s syndrome-the association with karyotype. Clin. Endocrinol. 2001;55:223–226. doi: 10.1046/j.1365-2265.2001.01296.x. [DOI] [PubMed] [Google Scholar]
- 12.Gravholt C.H., Jensen A.S., Høst C., Bojesen A. Body composition, metabolic syndrome and type 2 diabetes in Klinefelter syndrome. Acta Paediatr. 2011;100:871–877. doi: 10.1111/j.1651-2227.2011.02233.x. [DOI] [PubMed] [Google Scholar]
- 13.Calogero A.E., Giagulli V.A., Mongioì L.M., Triggiani V., Radicioni A.F., Jannini E.A., Pasquali D., Klinefelter ItaliaN Group (KING) Klinefelter syndrome: Cardiovascular abnormalities and metabolic disorders. J. Endocrinol. Investig. 2017;40:705–712. doi: 10.1007/s40618-017-0619-9. [DOI] [PubMed] [Google Scholar]
- 14.Salzano A., Arcopinto M., Marra A.M., Bobbio E., Esposito D., Accardo G., Giallauria F., Bossone E., Vigorito C., Lenzi A., et al. Klinefelter syndrome, cardiovascular system, and thromboembolic disease: Review of literature and clinical perspectives. Eur. J. Endocrinol. 2016;175:R27–R40. doi: 10.1530/EJE-15-1025. [DOI] [PubMed] [Google Scholar]
- 15.Joo J.E., Novakovic B., Cruickshank M., Doyle L.W., Craig J.M., Saffery R. Human active X-specific DNA methylation events showing stability across time and tissues. Eur. J. Hum. Genet. 2014;22:1376–1381. doi: 10.1038/ejhg.2014.34. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.sEst. [(accessed on 13 October 2018)]; Available online: https://jungch.github.io/sest/
- 17.Walker R.F., Liu J.S., Peters B.A., Ritz B.R., Wu T., Ophoff R.A., Horvath S. Epigenetic age analysis of children who seem to evade aging. Aging. 2015;7:334–339. doi: 10.18632/aging.100744. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Edgar R., Domrachev M., Lash A.E. Gene Expression Omnibus: NCBI gene expression and hybridization array data repository. Nucleic Acids Res. 2002;30:207–210. doi: 10.1093/nar/30.1.207. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Barrett T., Wilhite S.E., Ledoux P., Evangelista C., Kim I.F., Tomashevsky M., Marshall K.A., Phillippy K.H., Sherman P.M., Holko M., et al. NCBI GEO: Archive for functional genomics data sets—Update. Nucleic Acids Res. 2013;41:D991–D995. doi: 10.1093/nar/gks1193. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Du P., Zhang X., Huang C.-C., Jafari N., Kibbe W.A., Hou L., Lin S.M. Comparison of Beta-value and M-value methods for quantifying methylation levels by microarray analysis. BMC Bioinf. 2010;11:587. doi: 10.1186/1471-2105-11-587. [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.