Literature DB >> 25285208

shinyMethyl: interactive quality control of Illumina 450k DNA methylation arrays in R.

Jean-Philippe Fortin1, Elana Fertig2, Kasper Hansen3.   

Abstract

We present shinyMethyl, a Bioconductor package for interactive quality control of DNA methylation data from Illumina 450k arrays. The package summarizes 450k experiments into small exportable R objects from which an interactive interface is launched. Reactive plots allow fast and intuitive quality control assessment of the samples. In addition, exploration of the phenotypic associations is possible through coloring and principal component analysis. Altogether, the package makes it easy to perform quality assessment of large-scale methylation datasets, such as epigenome-wide association studies or the datasets available through The Cancer Genome Atlas portal. The shinyMethyl package is implemented in R and available via Bioconductor. Its development repository is at https://github.com/jfortin1/shinyMethyl.

Entities:  

Year:  2014        PMID: 25285208      PMCID: PMC4176427          DOI: 10.12688/f1000research.4680.2

Source DB:  PubMed          Journal:  F1000Res        ISSN: 2046-1402


Introduction

The recent release of the R package shiny [1] has substantially lowered the barriers to interactive visualization in R, opening the door to interactive exploration of high-dimensional genomic data. DNA methylation is an epigenetic mark, and changes in DNA methylation have been associated with various diseases, such as cancer [2]. For DNA methylation data, thousands of samples from the state-of-the-art Illumina 450k methylation array [3] have been generated and are accessible online from The Cancer Genome Atlas (TCGA) and through the Gene Expression Omnibus (GEO). This array has a series of probes used to measure a methylation and an unmethylation signal for a series of loci. Probes are designed using two main chemistries resulting in a challenging array design, essentially a mix of a two color and a one color array discussed in Bibikova et al. [3]. Analysis of data from this array requires careful quality control and pre-processing that account for these distinct chemistries. The assessment of these steps could benefit from an interactive visualization tool. Our solution is shinyMethyl, an interactive visualization package for 450k arrays, based on the packages minfi [4] and shiny [1]. The goal of shinyMethyl is two-fold; (1) to help with quality assessment and (2) to help with assessing the effect of pre-processing. We use pre-computation to enable interactive visualization of thousands of samples to circumvent computational bottlenecks during data exploration. The pre-computation can happen on a large computing server and the resulting data object can be used for interactive visualization on a laptop. Quality control and pre-processing large 450k datasets become easy and intuitive with shinyMethyl.

Methods

shinyMethyl workflow

The first step of shinyMethyl is pre-computation of various summaries of the 450k array data, using the function shinySummarize. This pre-computation is run on raw (not pre-processed) data and – optionally – pre-processed data, resulting in either one or two summary objects, as described below. These summary objects, called shinyMethylSet, are saved in a platform-independent format. The interactive interface is then launched via the function runShinyMethyl. The function requires a shinyMethylSet containing the summary data from the raw data. In addition, the function accepts as a second argument a shinyMethylSet that contains summaries from pre-processed data, in which case both raw and pre-processed data will be displayed in the interactive interface. Figure 1 illustrates the shinyMethyl workflow.
Figure 1.

The workflow of shinyMethyl.

IDAT files are parsed using minfi and illuminaio into a RGChannelSet. This object is summarized using shinySummarize. Optionally, the data are pre-processed and the pre-processed data are summarized. For visualization, runShinyMethyl is used on either one or two sets of summarized data.

The workflow of shinyMethyl.

IDAT files are parsed using minfi and illuminaio into a RGChannelSet. This object is summarized using shinySummarize. Optionally, the data are pre-processed and the pre-processed data are summarized. For visualization, runShinyMethyl is used on either one or two sets of summarized data.

Raw data summarization

Summarizing the raw data uses the minfi [4] and illuminaio [5] R packages to parse Illumina IDAT files into a minfi object called RGChannelSet. shinySummarize operates on this RGChannelSet and the summarization object created by this function is 35x smaller than the full data representation in minfi; 1,000 samples use 205 MB. Specifically, the summarized data contain the quantile distributions of the raw intensities for the unmethylated (U) and methylated (M) channels, copy numbers (CN = M + U), Beta values (Beta) and M values (M-Val). The object contains also the raw control probes intensities and the results of the principal component analysis performed on the autosomal Beta values. The function also extracts the phenotype variables stored in the RGChannelSet. The summarization is done separately by probe types (I and II, see Bibikova et al. [3]) and for sex chromosomes. An S4 class, called shinyMethylSet, is used to represent the data in R, and this object is independent of the operating system. The shinyMethyl interface is launched by passing the shinyMethylSet to the function runShinyMethyl. An example of the interface is shown in Figure 2.
Figure 2.

The shinyMethyl user interface for quality control.

The interface shows an example interactive visualization of batch effects and quality control (TCGA head and neck squamous cell carcinoma, HNSCC dataset). The interface is divided into a user menu and a plotting area. ( a) A menu containing a number of user-settable visualization parameters. The “phenotype” is set to “plate” which makes the color scheme reflect batch. The four plots ( b– e) are interactive and react simultaneously to the user mouse clicks, so that samples selected on one plot are immediately highlighted on the additional plots. The solid lines in black represents the sample(s) currently selected by the user and match the dot circled in black on ( b, c). The dashed lines in black represents another sample, previously selected by the user and match the black dot without the circle. ( b) Average negative control probes intensities; ( c) the median intensity of the M channel against the median intensity of the U channel; ( d– e) M-value densities for Infinium I probes before and after functional normalization.

The shinyMethyl user interface for quality control.

The interface shows an example interactive visualization of batch effects and quality control (TCGA head and neck squamous cell carcinoma, HNSCC dataset). The interface is divided into a user menu and a plotting area. ( a) A menu containing a number of user-settable visualization parameters. The “phenotype” is set to “plate” which makes the color scheme reflect batch. The four plots ( b– e) are interactive and react simultaneously to the user mouse clicks, so that samples selected on one plot are immediately highlighted on the additional plots. The solid lines in black represents the sample(s) currently selected by the user and match the dot circled in black on ( b, c). The dashed lines in black represents another sample, previously selected by the user and match the black dot without the circle. ( b) Average negative control probes intensities; ( c) the median intensity of the M channel against the median intensity of the U channel; ( d– e) M-value densities for Infinium I probes before and after functional normalization.

Pre-processed data summarization (optional)

Summarizing pre-processed data in shinyMethyl operates on an S4 object in minfi termed GenomicRatioSet. The summaries of the pre-process data are stored in an additional shinyMethylSet. Again, the summarized data object is substantially smaller than the full data representation in minfi. If this shinyMethylSet is also included in the runShinyMethyl command, the summaries of the pre-processed data are automatically added to the shinyMethyl interface. This option represents a powerful diagnostic tool to assess the global performance of a normalization method, such as plate effect correction ( Figure 2), or preservation of the expected biological differences between different tissues or conditions ( Figure 3).
Figure 3.

Visualization of cancer/normal differences in the TCGA dataset, before and after normalization.

In the first two plots are shown the densities of the M-values for Type I green probes before ( a) and after ( b) functional normalization as presented in the shinyMethyl interactive interface. Green and blue densities represent tumor and normal samples respectively, and red densities represent 9 technical replicates of a control cell line. The last two plots show the average density for each sample group before and after normalization. Functional normalization preserves the expected marginal differences between normal and cancer, while reducing the variation between the technical controls (red lines).

Visualization of cancer/normal differences in the TCGA dataset, before and after normalization.

In the first two plots are shown the densities of the M-values for Type I green probes before ( a) and after ( b) functional normalization as presented in the shinyMethyl interactive interface. Green and blue densities represent tumor and normal samples respectively, and red densities represent 9 technical replicates of a control cell line. The last two plots show the average density for each sample group before and after normalization. Functional normalization preserves the expected marginal differences between normal and cancer, while reducing the variation between the technical controls (red lines).

Quality control assessment

Once the DNA methylation data have been summarized, shinyMethyl offers three interactive plots for quality control. These plots react conjointly to the user mouse: (1) a density plot of the M/Beta values, (2) a QC plot proposed in minfi and (3) a plot of control probes intensities. The samples are colored by a phenotype variable selected by the user. The three plots together allow the user to select aberrant samples, whose array identifiers are saved into a csv file for exclusion in subsequent analyses (outside of shinyMethyl). An example of quality control panel is presented in Figure 2 in which summaries from the TCGA head and neck squamous cell carcinoma (HNSCC) samples are colored by batch; shinyMethyl allows to observe significant batch effects, a source of obscure variation that has critical consequences in downstream analysis [6].

Sex prediction

The sex of the samples can be accurately predicted by using the intensities of the probes mapping to the sex chromosomes in the M and U channels [4]. shinyMethyl implements this prediction algorithm and allows the user to interactively specify a cutoff to cluster samples by sex. The array identifiers of the samples for which the predicted sex does not agree with the user-provided sex phenotype are displayed within the interface and can be saved into a csv file for further analysis. From the HNSCC TCGA dataset (described in Example data), one sample shows discrepancy, indicating possible mislabeling ( Figure 4).
Figure 4.

Sex prediction interface.

The difference of the median copy number intensity for the Y chromosome and the median copy number intensity for the X chromosome can be used to separate males and females. In a), the user can select the vertical cutoff (dashed line) manually with the mouse to separate the two clusters (orange for females, blue for males). Corresponding Beta-value densities appear in b) for further validation. The predicted sex can be downloaded in a csv file in c), and samples for which the predicted sex differs from the sex provided in the phenotype will appear in d).

Sex prediction interface.

The difference of the median copy number intensity for the Y chromosome and the median copy number intensity for the X chromosome can be used to separate males and females. In a), the user can select the vertical cutoff (dashed line) manually with the mouse to separate the two clusters (orange for females, blue for males). Corresponding Beta-value densities appear in b) for further validation. The predicted sex can be downloaded in a csv file in c), and samples for which the predicted sex differs from the sex provided in the phenotype will appear in d).

PCA analysis and design confounding

shinyMethyl also performs a principal component analysis (PCA) on the 20,000 most variable autosomal probes. This analysis enables the observation of associations between phenotype and methylation levels. An additional panel displays the physical arrays colored by phenotype. This coloring allows the user to discern potential confounding between phenotype and study design.

Example data

The data package shinyMethylData contains the summarized data for 369 HNSCC cancer samples from TCGA. It is available from the Bioconductor project ( http://www.bioconductor.org). All analyses were performed on raw IDAT intensity files available from Level I data in the TCGA Data Portal ( https://tcga-data.nci.nih.gov/tcga). Both raw intensities and normalized methylation values obtained by functional normalization using control probes and a slide covariate [7] are included. The shinyMethylSet objects containing respectively the raw and normalized data can be accessed by summary.tcga.raw and summmary.tcga.norm.

Discussion

shinyMethyl makes the quality control and pre-processing of 450k methylation array data fast and intuitive through an interactive application in R. We also show, by example, how to use shiny to develop interactive visualization interfaces. Our example will facilitate future developments of interactive visualization tools for the processing of high-dimensional genomic data in subsequent Bioconductor [8] packages.

Software availability

Software access

shinyMethyl is an R package available from the Bioconductor project ( http://www.bioconductor.org). A demo deployment of the software is available at http://spark.rstudio.com/jfortin/shinyMethyl; we caution that this free hosting of the package at times appear much slower than a local installation.

Latest source code

https://github.com/jfortin1/shinyMethyl

Source code as at the time of publication

https://github.com/F1000Research/shinyMethyl/releases/tag/v1.0

Archived source code as at the time of publication

http://dx.doi.org/10.5281/zenodo.10748 [10]

Software license

Artistic-2.0 The authors proved to be correct in that Rstudio has "transitioned" their spark server to a subscription model for shiny hosting. Perhaps my request was unwarranted. The software itself behaves as advertised and is an efficient tool for quality control of these arrays. I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard. This manuscript written by Fortin et al. presents an R package to assess the quality control of 450k methylation array data through an interactive interface. A unique aspect of shinyMethyl is the use of the shiny package to allow the interactive visualisation. shinyMethyl is easy to use and therefore suitable for a novice data analyst with limited programming experience and also experienced bioinformaticians that would like to quickly assess large datasets. Additionally the package utilises the established and widely used R package minfi for the data analysis. shinyMethyl is available for download from Bioconductor or github. In this manuscript, the authors clearly describe the use of the package through a workflow and various screenshots and plots. They discuss the example dataset that is available through TCGA. Data interpretation is only explained briefly as the purpose of this manuscript is to present the interface.  In depth background information on analysis methods (terminology, normalisations etc) and details of data interpretation can be found in the minfi publication or the Bioconductor vignette. The package does require the raw IDAT files. Some publicly available datasets may not provide this information and therefore shinyMethyl would not be applicable. However, it is becoming mainstream to provide this data and with more packages utilising this raw data it is expected that investigators make it available. The authors have clearly presented their package that is well designed, easy to use and a useful addition to the options for 450k data analysis especially as it is the platform of choice for large epigenome-wide association studies. I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard. Thank you very much for taking the time to review our work and for the kind referee report. The title of the report is entirely appropriate. The abstract would benefit from mention of the interactive demo on spark.rstudio.com, as the interface is trivially easy to grasp while performing the various quality control checks. The methods not directly treated in this report (functional normalization, Shiny internals, 450k chip design) have been discussed elsewhere at length.The discussion of design and implementation decisions for shinyMethyl is sufficient (again an interactive/exploratory session will provide the interested user with most if not all of the same information). The conclusion (shinyMethyl eases 450k quality control for large datasets with potential technical artifacts) is justified in the report, the included example for the package, and the interactive demo hosted by Rstudio. The data for the example are available as raw binary IDAT files from the TCGA data portal; reproducibility via minfi is trivial, provided the user has sufficient compute resources to process and normalize a large dataset. (In my experience, datasets of 1000+ samples can be read with illuminaio and normalized via funnorm() on a typical Linux server with 48-64GB of RAM) This report serves a useful purpose (beyond the announcement of the software) by providing a usable baseline for 450k quality control. Epigenome-wide association studies are prone to a staggering number of potential confounding factors, not least of which are technical and experimental design artifacts. Investigators who have an interest in reproducible conduct of such studies now have further incentive to use and deposit raw binary IDAT files for their experiments. Investigators who choose not to do so may be viewed with skepticism, especially when the data has been processed for analysis via minfi (or, for that matter, methylumi), and verification of straightforward quality controls is made simpler by the interactive shinyMethyl package. I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard. We thank the referee for taking the time to review our work, and thank for the kind review. We have submitted a revision with an added sentence about the demo at spark.rstudio.com under "Software access", but caution that this website at times is slow to respond to input. This is a hosting service freely available to the community.
  8 in total

1.  High density DNA methylation array with single CpG site resolution.

Authors:  Marina Bibikova; Bret Barnes; Chan Tsan; Vincent Ho; Brandy Klotzle; Jennie M Le; David Delano; Lu Zhang; Gary P Schroth; Kevin L Gunderson; Jian-Bing Fan; Richard Shen
Journal:  Genomics       Date:  2011-08-02       Impact factor: 5.736

2.  Minfi: a flexible and comprehensive Bioconductor package for the analysis of Infinium DNA methylation microarrays.

Authors:  Martin J Aryee; Andrew E Jaffe; Hector Corrada-Bravo; Christine Ladd-Acosta; Andrew P Feinberg; Kasper D Hansen; Rafael A Irizarry
Journal:  Bioinformatics       Date:  2014-01-28       Impact factor: 6.937

Review 3.  Tackling the widespread and critical impact of batch effects in high-throughput data.

Authors:  Jeffrey T Leek; Robert B Scharpf; Héctor Corrada Bravo; David Simcha; Benjamin Langmead; W Evan Johnson; Donald Geman; Keith Baggerly; Rafael A Irizarry
Journal:  Nat Rev Genet       Date:  2010-09-14       Impact factor: 53.242

4.  Bioconductor: open software development for computational biology and bioinformatics.

Authors:  Robert C Gentleman; Vincent J Carey; Douglas M Bates; Ben Bolstad; Marcel Dettling; Sandrine Dudoit; Byron Ellis; Laurent Gautier; Yongchao Ge; Jeff Gentry; Kurt Hornik; Torsten Hothorn; Wolfgang Huber; Stefano Iacus; Rafael Irizarry; Friedrich Leisch; Cheng Li; Martin Maechler; Anthony J Rossini; Gunther Sawitzki; Colin Smith; Gordon Smyth; Luke Tierney; Jean Y H Yang; Jianhua Zhang
Journal:  Genome Biol       Date:  2004-09-15       Impact factor: 13.583

5.  Hypomethylation distinguishes genes of some human cancers from their normal counterparts.

Authors:  A P Feinberg; B Vogelstein
Journal:  Nature       Date:  1983-01-06       Impact factor: 49.962

6.  illuminaio: An open source IDAT parsing tool for Illumina microarrays.

Authors:  Mike L Smith; Keith A Baggerly; Henrik Bengtsson; Matthew E Ritchie; Kasper D Hansen
Journal:  F1000Res       Date:  2013-12-04

7.  Functional normalization of 450k methylation array data improves replication in large cancer studies.

Authors:  Jean-Philippe Fortin; Aurélie Labbe; Mathieu Lemire; Brent W Zanke; Thomas J Hudson; Elana J Fertig; Celia Mt Greenwood; Kasper D Hansen
Journal:  Genome Biol       Date:  2014-12-03       Impact factor: 13.583

8.  shinyMethyl: interactive quality control of Illumina 450k DNA methylation arrays in R.

Authors:  Jean-Philippe Fortin; Elana Fertig; Kasper Hansen
Journal:  F1000Res       Date:  2014-07-30
  8 in total
  51 in total

1.  DNA methylation associated with healthy aging of elderly twins.

Authors:  Sangkyu Kim; Jennifer Wyckoff; Anne-T Morris; Annemarie Succop; Ally Avery; Glen E Duncan; S Michal Jazwinski
Journal:  Geroscience       Date:  2018-08-22       Impact factor: 7.713

2.  Interactive graphics for functional data analyses.

Authors:  Julia Wrobel; So Young Park; Ana Maria Staicu; Jeff Goldsmith
Journal:  Stat (Int Stat Inst)       Date:  2016-03-31

3.  The transcriptome of CMML monocytes is highly inflammatory and reflects leukemia-specific and age-related alterations.

Authors:  Anca Franzini; Anthony D Pomicter; Dongqing Yan; Jamshid S Khorashad; Srinivas K Tantravahi; Hein Than; Jonathan M Ahmann; Thomas O'Hare; Michael W Deininger
Journal:  Blood Adv       Date:  2019-10-22

4.  Epigenetic Age Acceleration in Adolescence Associates With BMI, Inflammation, and Risk Score for Middle Age Cardiovascular Disease.

Authors:  Rae-Chi Huang; Karen A Lillycrop; Lawrence J Beilin; Keith M Godfrey; Denise Anderson; Trevor A Mori; Sebastian Rauschert; Jeffrey M Craig; Wendy H Oddy; Oyekoya T Ayonrinde; Craig E Pennell; Joanna D Holbrook; Phillip E Melton
Journal:  J Clin Endocrinol Metab       Date:  2019-07-01       Impact factor: 5.958

5.  Novel DNA methylation sites associated with cigarette smoking among African Americans.

Authors:  Veronica Barcelona; Yunfeng Huang; Kristen Brown; Jiaxuan Liu; Wei Zhao; Miao Yu; Sharon L R Kardia; Jennifer A Smith; Jacquelyn Y Taylor; Yan V Sun
Journal:  Epigenetics       Date:  2019-03-27       Impact factor: 4.528

6.  CpG methylation patterns in placenta and neonatal blood are differentially associated with neonatal inflammation.

Authors:  Lauren A Eaves; Adam E Enggasser; Marie Camerota; Semsa Gogcu; William A Gower; Hadley Hartwell; Wesley M Jackson; Elizabeth Jensen; Robert M Joseph; Carmen J Marsit; Kyle Roell; Hudson P Santos; Jeffrey S Shenberger; Lisa Smeester; Diana Yanni; Karl C K Kuban; T Michael O'Shea; Rebecca C Fry
Journal:  Pediatr Res       Date:  2022-06-28       Impact factor: 3.756

7.  Variability of multi-omics profiles in a population-based child cohort.

Authors:  Marta Gallego-Paüls; Carles Hernández-Ferrer; Mariona Bustamante; Xavier Basagaña; Jose Barrera-Gómez; Chung-Ho E Lau; Alexandros P Siskos; Marta Vives-Usano; Carlos Ruiz-Arenas; John Wright; Remy Slama; Barbara Heude; Maribel Casas; Regina Grazuleviciene; Leda Chatzi; Eva Borràs; Eduard Sabidó; Ángel Carracedo; Xavier Estivill; Jose Urquiza; Muireann Coen; Hector C Keun; Juan R González; Martine Vrijheid; Léa Maitre
Journal:  BMC Med       Date:  2021-07-22       Impact factor: 8.775

8.  Accelerated DNA methylation age and medication use among African Americans.

Authors:  Minjung Kho; Yi Zhe Wang; Dima Chaar; Wei Zhao; Scott M Ratliff; Thomas H Mosley; Patricia A Peyser; Sharon L R Kardia; Jennifer A Smith
Journal:  Aging (Albany NY)       Date:  2021-06-03       Impact factor: 5.682

9.  Using methylome data to inform exposome-health association studies: An application to the identification of environmental drivers of child body mass index.

Authors:  Solène Cadiou; Mariona Bustamante; Lydiane Agier; Sandra Andrusaityte; Xavier Basagaña; Angel Carracedo; Leda Chatzi; Regina Grazuleviciene; Juan R Gonzalez; Kristine B Gutzkow; Léa Maitre; Dan Mason; Frédéric Millot; Mark Nieuwenhuijsen; Eleni Papadopoulou; Gillian Santorelli; Pierre-Jean Saulnier; Marta Vives; John Wright; Martine Vrijheid; Rémy Slama
Journal:  Environ Int       Date:  2020-03-14       Impact factor: 9.621

10.  Epigenome-wide association study identifies DNA methylation sites associated with target organ damage in older African Americans.

Authors:  Farah Ammous; Wei Zhao; Scott M Ratliff; Minjung Kho; Lulu Shang; Alana C Jones; Ninad S Chaudhary; Hemant K Tiwari; Marguerite R Irvin; Donna K Arnett; Thomas H Mosley; Lawrence F Bielak; Sharon L R Kardia; Xiang Zhou; Jennifer Smith
Journal:  Epigenetics       Date:  2020-10-26       Impact factor: 4.528

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.