Literature DB >> 34601555

MungeSumstats: A Bioconductor package for the standardisation and quality control of many GWAS summary statistics.

Alan E Murphy1, Brian M Schilder1, Nathan G Skene1.   

Abstract

MOTIVATION: Genome-wide association studies (GWAS) summary statistics have popularised and accelerated genetic research. However, a lack of standardisation of the file formats used has proven problematic when running secondary analysis tools or performing meta-analysis studies.
RESULTS: To address this issue, we have developed MungeSumstats, a Bioconductor R package for the standardisation and quality control of GWAS summary statistics. MungeSumstats can handle the most common summary statistic formats, including variant call format (VCF) producing a reformatted, standardised, tabular summary statistic file, VCF or R native data object. AVAILABILITY: MungeSumstats is available on Bioconductor (v 3.13) and can also be found on Github at: https://neurogenomics.github.io/MungeSumstats. SUPPLEMENTARY INFORMATION: The analysis deriving the most common summary statistic formats is available at: https://al-murphy.github.io/SumstatFormats.
© The Author(s) 2021. Published by Oxford University Press.

Entities:  

Year:  2021        PMID: 34601555      PMCID: PMC8652100          DOI: 10.1093/bioinformatics/btab665

Source DB:  PubMed          Journal:  Bioinformatics        ISSN: 1367-4803            Impact factor:   6.937


1 Introduction

Genome‐wide association studies (GWAS) summary statistics are used to distribute the most important outputs of GWASs in a manner which does not require the transfer of individual-level personally identifiable information from participants. Summary statistics from past studies tend to become more valuable over time as it becomes possible to meta-analyze and integrate them with new annotation information through approaches such as Linkage Disequilibrium Score Regression (LDSC) (Bulik-Sullivan ), Generalized Gene-Set Analysis of GWAS Data, MAGMA (de Leeuw ) and multi-phenotype investigations (Aguirre ; Tanigawa ). Summary statistics are also commonly integrated for use in the meta-analysis of GWAS. However, these tools and this integration require a standardized data format which was historically lacking from the field. The diversity of data formats in summary statistics has been a result of the phenotypes in question, for example disease-control or quantitative trait, the software used to perform the analysis, such as PLINK (Purcell ) and GCTA (Yang ) or just the preference of the consortium in question. There have been movements to standardize the summary statistic file format such as the NHGRI-EBI GWAS Catalogue standardized format (Buniello ) and the SMR Tool binary format (Zhu ). More recently, the variant call format to store GWAS summary statistics (GWAS-VCF) (Lyon ) has been developed which has manually converted over 10 000 GWAS to this format. While GWAS-VCF offers a standardized format that future GWAS consortium may adopt, there are still a multitude of past, publicly available GWAS which have not been standardized (Jansen ; Lin ; Luciano ; McCormack ). For instance, although their summary statistics are publicly available, the GWAS for Cerebral small vessel disease (Sargurupremraj ) is not yet available in VCF format via IEU GWAS. Furthermore, as VCF is not yet the standard for sharing files between geneticists, unpublished GWAS shared internally within genetics consortia or provided by personal genetics companies are still found in a variety of summary statistic formats. As such, there is a need for tools to move between the various formats in which summary statistics are stored. The standardization of GWAS summary statistics also requires quality control to ensure cohesive integration. For example, checking if the non-effect allele from the summary statistics matches the reference sequence from a reference genome to ensure consistent directionality of allelic effects across GWAS. In addition, downstream analysis tools often require a degree of quality control which, in the case of meta-analysis, must be applied across all GWAS. One such example is the removal of all non-biallelic SNPs is a common requirement of all downstream analysis (Lyon ). To address these issues, we introduce MungeSumstats a Bioconductor R package for the rapid standardization and quality control of many GWAS summary statistics. MungeSumstats can handle the most common summary statistic formats as well as GWAS-VCFs to enable the integrative meta-analysis of diverse GWAS. MungeSumstats also offers a comprehensive and tuneable quality control protocol with defaults for common, best-practice approaches. MungeSumstats capitalizes on R’s familiar interface, is readily accessible through Bioconductor and utilizes an intuitive approach, running with a single line of input code.

2 Heterogeneity in GWAS formats

To demonstrate the diversity in summary statistics across GWAS, we analyzed a public repository of over 200 publicly available GWAS (Gloudemans, 2021). From this, the most common summary statistics were derived (see Fig.  1 for the 12 most common file header formats).
Fig. 1.

Most common summary statistic formats show the most common summary statistic formats from a repository of over 200 publicly available GWAS (Gloudemans, 2021). Note that, a GWAS can have more than 1 summary statistics file and ‘’ is the symbol ‘¶¬’ read into R

Most common summary statistic formats show the most common summary statistic formats from a repository of over 200 publicly available GWAS (Gloudemans, 2021). Note that, a GWAS can have more than 1 summary statistics file and ‘’ is the symbol ‘¶¬’ read into R A total of 327 summary statistic files were derived from the analysis which corresponded to 127 unique formats. Thus, on average, every 2.5 summary statistic files had a unique format, showing the clear disparity across GWAS. The 12 most common formats, shown in Figure  1, accounted for approximately 47% all summary statistics. MungeSumstats has been tested on these 12 most common formats and is able to standardize their summary statistics.

3 Implementation

MungeSumstats was implemented using the R programming language (v 4.0) and Bioconductor S4 data infrastructure (v 3.13) enabling the full analysis of summary statistics within the R environment. The package removes the need for external software to perform the standardization and quality control steps. MungeSumstats’ implementation ensures both memory and speed efficiency through the use of R data.table (v.1.14.0) (Dowle and Srinivasan, 2021), which can take advantage of multi-core parallelization. Moreover, MungeSumstats benefits from Bioconductor’s infrastructure for efficient representation of full genomes and their SNPs, using BSgenome (v 1.59.2) SNP reference genomes (Pagès, 2021). Either Ensembl’s GRCh37 or GRCh38 are queried dependent on the build for the particular GWAS. Numerous of MungeSumstats’ quality control steps for summary statistics require the use of a reference genome. For example, an allele flipping test is run (see Table  1) to ensure consistent directionality of allelic effect and frequency variables. The effect or alternative allele is always assumed to be the second allele (A2), in line with the approach for GWAS-VCF (Lyon ). Moreover, MungeSumstats can impute any missing, essential information like SNP ID, base-pair position and effect/non-effect allele.
Table 1.

MungeSumstats implemented checks

|S|MungeSumstats checkDescription
1Check VCF formatIf the input file is in variant call format (VCF), if so import
2Check tab, space or comma delimitedIf input is space or comma delimited convert to tab delimited. Can handle .tsv, .txt, .csv, .tsv.gz, .txt.gz, .csv.gz, .tsv.bgz, .txt.bgz, .csv.bgz, .vcf, .vcf.gz, .vcf.bgz files.
3Check for header name synonymsIf any alternative names are found for SNP, BP, CHR, A1, A2, P, Z, OR, BETA, LOG_ODDS, SIGNED_SUMSTAT, N, N_CAS, N_CON, NSTUDY, INFO or FRQ convert them to a standard name. Robust conversion approach with 176 unique mappings
4Check for multiple models or traits in GWASIf multiple, user must specify one to analyze
5Check for uniformity in SNP IDEnsure no mix of RS ID, missing ‘rs’ prefix and/or CHR: BP
6Check for CHR: BP: A2: A1 all in one columnSplit into separate columns if found
7Check for CHR: BP in one columnSplit into separate columns if found
8Check for A1/A2 in one columnSplit into separate columns if found
9Check if CHR and/or BP is missingIf so, infer from the chosen reference genome
10Check if SNP ID is missingIf so, infer from the chosen reference genome
11Check if A1 and/or A2 are missingIf so, infer from the chosen reference genome
12Check that vital columns are presentCheck for the necessary columns; SNP, CHR, BP, P, A1, A2
13Check for one signed/effect columnEffect columns Z, OR, BETA, LOG_ODDS, SIGNED_SUMSTAT
14Check for missing dataIf data is missing from any entry, remove the SNP
15Check for duplicated columnsIf there are any remove one
16Check for P-values lower than 5e-324These are not recognized in R and cause issues with downstream analysis software like LDSC/MAGMA. User can convert to 0.
17Check N columnEnsure it is an integer and check if the sample size for a SNP isn’t greater than mean multiplied by five times the standard deviation. Removes SNPs that have substantial more samples than the rest.
18Check SNPs are RS ID'sChecks validity of SNP IDs as RS IDs, other IDs can still be used
19Check for duplicated rows, based on SNP IDDuplicates are removed
21Check for duplicated rows, based on base-pair positionDuplicates are removed
22Check for SNPs on reference genomeCorrect any missing from reference genome using BP and CHR
23Check INFO scoreRemove SNPs with imputation score less than 0.9 
24Check for strand-ambiguous SNPsRemove strand-ambiguous SNPs if found
25Check for non-biallelic SNPs (infer from reference genome)Infer from chosen reference genome and remove any if found
26Check for allele flippingThe effect/alternative/minor allele is assumed to be A2. The allele flipping function checks A1 against a reference genome. For a given SNP, if A1 doesn't match the reference genome sequence (i.e. it is the alternative allele, not the reference allele for example), A1 and A2 along with the effect and frequency columns are flipped, creating consistent directionality of allelic effects across GWAS.
27Check for SNPs on chromosome X, Y and mitochondrial SNPs (MT)If any are found these are removed.
28Check output format is LDSC readyStandardized file can be passed to LDSC without pre-processing
29Check effect column valuesEnsure effect columns (like BETA) aren’t equal to 0
30Check Standard ErrorEnsure standard error (SE) is positive
31Check dropped and imputed valuesReturn indicators of the imputed values for a SNP and return the SNPs and the reason for exclusion because of QC.
MungeSumstats implemented checks Using these two infrastructures, MungeSumstats conducts more than 30 checks on the inputted summary statistics file (see Table  1 for a description of their use). MungeSumstats is also written to ensure the ease of addition of further checks so if users have summary statistics which can’t currently be handled in MungeSumstats, these can be incorporated easily in future releases. Finally, MungeSumstats returns a reformatted, tabular summary statistics file, a VCF or an R native data object (data.table, VRanges or GRanges) with standardized columns for the information necessary for downstream analysis. The quality control and standardization checks conducted. Most checks are optional and can be set by the user. Here, CHR is chromosome, BP is Base-pair position, A1 is the non-effect allele, A2 is the effect allele, N is the sample size, INFO is imputation information score, FRQ is the minor allele frequency (MAF) of the SNP, SNP ID is the single nucleotide polymorphism reference ID, P is the unadjusted P-value, Z is z-score, OR is odds ratio, LOG_ODDS is the log odds ratio, BETA is the effect size estimate relative to the alternative allele and SIGNED_SUMSTAT is the directional effect size estimate for the summary statistics.

4 Usage

Once MungeSumstats is installed, usage involves a single line of code or one function call (format_sumstats) with the path to the summary statistics file of interest. Then, the path to the reformatted, standardized summary statistic file is returned. MungeSumstats also offers adjustable parameters to manage the quality control steps. These include options to adjust the imputation information score (INFO) cut-off threshold, the number of samples (N) outliers cut-off threshold and whether to remove mitochondrial SNPs or SNPs on the X or Y chromosome (see Table  1). Quality control steps which use a reference genome can also be adjusted such as whether to filter SNPs based on their RS ID’s presence on the reference genome, whether to check for allele flipping and whether to remove multi-allelic or strand-ambiguous SNPs. These parameters ensure MungeSumstats can be adjusted to the user’s analysis pipelines.

5 Conclusion

Here, we presented MungeSumstats, a Bioconductor package for the standardization and quality control of GWAS summary statistics. This package enables integration of summary statistics of vastly different formats, simplifying meta-analysis and summary statistics use in other secondary research applications. The package provides an efficient, user-friendly R-native approach, returning a standardized, tabular format file, VCF or R native data object. This ensures that the summary statistics are accessible to the average user. Moreover, MungeSumstats is written to permit future development of additional standardization steps if users encounter issues with their specific GWAS.
  14 in total

1.  GCTA: a tool for genome-wide complex trait analysis.

Authors:  Jian Yang; S Hong Lee; Michael E Goddard; Peter M Visscher
Journal:  Am J Hum Genet       Date:  2010-12-17       Impact factor: 11.025

2.  PLINK: a tool set for whole-genome association and population-based linkage analyses.

Authors:  Shaun Purcell; Benjamin Neale; Kathe Todd-Brown; Lori Thomas; Manuel A R Ferreira; David Bender; Julian Maller; Pamela Sklar; Paul I W de Bakker; Mark J Daly; Pak C Sham
Journal:  Am J Hum Genet       Date:  2007-07-25       Impact factor: 11.025

3.  Integration of summary data from GWAS and eQTL studies predicts complex trait gene targets.

Authors:  Zhihong Zhu; Futao Zhang; Han Hu; Andrew Bakshi; Matthew R Robinson; Joseph E Powell; Grant W Montgomery; Michael E Goddard; Naomi R Wray; Peter M Visscher; Jian Yang
Journal:  Nat Genet       Date:  2016-03-28       Impact factor: 38.330

4.  Common and Rare Coding Genetic Variation Underlying the Electrocardiographic PR Interval.

Authors:  Honghuang Lin; Jessica van Setten; Albert V Smith; Nathan A Bihlmeyer; Helen R Warren; Jennifer A Brody; Farid Radmanesh; Leanne Hall; Niels Grarup; Martina Müller-Nurasyid; Thibaud Boutin; Niek Verweij; Henry J Lin; Ruifang Li-Gao; Marten E van den Berg; Jonathan Marten; Stefan Weiss; Bram P Prins; Jeffrey Haessler; Leo-Pekka Lyytikäinen; Hao Mei; Tamara B Harris; Lenore J Launer; Man Li; Alvaro Alonso; Elsayed Z Soliman; John M Connell; Paul L Huang; Lu-Chen Weng; Heather S Jameson; William Hucker; Alan Hanley; Nathan R Tucker; Yii-Der Ida Chen; Joshua C Bis; Kenneth M Rice; Colleen M Sitlani; Jan A Kors; Zhijun Xie; Chengping Wen; Jared W Magnani; Christopher P Nelson; Jørgen K Kanters; Moritz F Sinner; Konstantin Strauch; Annette Peters; Melanie Waldenberger; Thomas Meitinger; Jette Bork-Jensen; Oluf Pedersen; Allan Linneberg; Igor Rudan; Rudolf A de Boer; Peter van der Meer; Jie Yao; Xiuqing Guo; Kent D Taylor; Nona Sotoodehnia; Jerome I Rotter; Dennis O Mook-Kanamori; Stella Trompet; Fernando Rivadeneira; André Uitterlinden; Mark Eijgelsheim; Sandosh Padmanabhan; Blair H Smith; Henry Völzke; Stephan B Felix; Georg Homuth; Uwe Völker; Massimo Mangino; Timothy D Spector; Michiel L Bots; Marco Perez; Mika Kähönen; Olli T Raitakari; Vilmundur Gudnason; Dan E Arking; Patricia B Munroe; Bruce M Psaty; Cornelia M van Duijn; Emelia J Benjamin; Jonathan Rosand; Nilesh J Samani; Torben Hansen; Stefan Kääb; Ozren Polasek; Pim van der Harst; Susan R Heckbert; J Wouter Jukema; Bruno H Stricker; Caroline Hayward; Marcus Dörr; Yalda Jamshidi; Folkert W Asselbergs; Charles Kooperberg; Terho Lehtimäki; James G Wilson; Patrick T Ellinor; Steven A Lubitz; Aaron Isaacs
Journal:  Circ Genom Precis Med       Date:  2018-05

5.  MAGMA: generalized gene-set analysis of GWAS data.

Authors:  Christiaan A de Leeuw; Joris M Mooij; Tom Heskes; Danielle Posthuma
Journal:  PLoS Comput Biol       Date:  2015-04-17       Impact factor: 4.475

6.  Genetic variation in CFH predicts phenytoin-induced maculopapular exanthema in European-descent patients.

Authors:  Mark McCormack; Hongsheng Gui; Andrés Ingason; Doug Speed; Galen E B Wright; Eunice J Zhang; Rodrigo Secolin; Clarissa Yasuda; Maxwell Kwok; Stefan Wolking; Felicitas Becker; Sarah Rau; Andreja Avbersek; Kristin Heggeli; Costin Leu; Chantal Depondt; Graeme J Sills; Anthony G Marson; Pauls Auce; Martin J Brodie; Ben Francis; Michael R Johnson; Bobby P C Koeleman; Pasquale Striano; Antonietta Coppola; Federico Zara; Wolfram S Kunz; Josemir W Sander; Holger Lerche; Karl Martin Klein; Sarah Weckhuysen; Martin Krenn; Lárus J Gudmundsson; Kári Stefánsson; Roland Krause; Neil Shear; Colin J D Ross; Norman Delanty; Munir Pirmohamed; Bruce C Carleton; Fernando Cendes; Iscia Lopes-Cendes; Wei-Ping Liao; Terence J O'Brien; Sanjay M Sisodiya; Stacey Cherny; Patrick Kwan; Larry Baum; Gianpiero L Cavalleri
Journal:  Neurology       Date:  2017-12-29       Impact factor: 9.910

7.  The NHGRI-EBI GWAS Catalog of published genome-wide association studies, targeted arrays and summary statistics 2019.

Authors:  Annalisa Buniello; Jacqueline A L MacArthur; Maria Cerezo; Laura W Harris; James Hayhurst; Cinzia Malangone; Aoife McMahon; Joannella Morales; Edward Mountjoy; Elliot Sollis; Daniel Suveges; Olga Vrousgou; Patricia L Whetzel; Ridwan Amode; Jose A Guillen; Harpreet S Riat; Stephen J Trevanion; Peggy Hall; Heather Junkins; Paul Flicek; Tony Burdett; Lucia A Hindorff; Fiona Cunningham; Helen Parkinson
Journal:  Nucleic Acids Res       Date:  2019-01-08       Impact factor: 16.971

8.  The variant call format provides efficient and robust storage of GWAS summary statistics.

Authors:  Matthew S Lyon; Shea J Andrews; Ben Elsworth; Tom R Gaunt; Gibran Hemani; Edoardo Marcora
Journal:  Genome Biol       Date:  2021-01-13       Impact factor: 13.583

9.  An atlas of genetic correlations across human diseases and traits.

Authors:  Brendan Bulik-Sullivan; Hilary K Finucane; Verneri Anttila; Alexander Gusev; Felix R Day; Po-Ru Loh; Laramie Duncan; John R B Perry; Nick Patterson; Elise B Robinson; Mark J Daly; Alkes L Price; Benjamin M Neale
Journal:  Nat Genet       Date:  2015-09-28       Impact factor: 38.330

10.  Components of genetic associations across 2,138 phenotypes in the UK Biobank highlight adipocyte biology.

Authors:  Yosuke Tanigawa; Jiehan Li; Johanne M Justesen; Heiko Horn; Matthew Aguirre; Christopher DeBoever; Chris Chang; Balasubramanian Narasimhan; Kasper Lage; Trevor Hastie; Chong Y Park; Gill Bejerano; Erik Ingelsson; Manuel A Rivas
Journal:  Nat Commun       Date:  2019-09-06       Impact factor: 14.919

View more
  1 in total

1.  Alzheimer's disease-related transcriptional sex differences in myeloid cells.

Authors:  Isabelle Coales; Stergios Tsartsalis; David Owen; Paul M Matthews; Nurun Fancy; Maria Weinert; Daniel Clode
Journal:  J Neuroinflammation       Date:  2022-10-05       Impact factor: 9.587

  1 in total

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