getmstatistic

Quantifying Systematic Heterogeneity in Meta-Analysis

https://github.com/magosil86/getmstatistic

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.2%) to scientific vocabulary

Keywords

getmstatistic gwas heartgenes214 heterogeneity meta-analysis mstatistic outlier-studies stata systematic-heterogeneity
Last synced: 6 months ago · JSON representation

Repository

Quantifying Systematic Heterogeneity in Meta-Analysis

Basic Info
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
getmstatistic gwas heartgenes214 heterogeneity meta-analysis mstatistic outlier-studies stata systematic-heterogeneity
Created almost 9 years ago · Last pushed almost 5 years ago
Metadata Files
Readme License

README.md

Travis-CI Build Status GitHub license GitHub issues CRAN_Status_Badge Coverage status CRAN_Logs_Rstudio

getmstatistic

M - An aggregate statistic, to identify systematic heterogeneity patterns and their direction of effect in meta-analysis

Overview

M quantitatively describes systematic (non-random) heterogeneity patterns acting across multiple variants in a GWAS meta-analysis. It's primary use is to identify outlier studies, which either show "null" effects or consistently show stronger or weaker genetic effects than average across, the panel of variants examined in a meta-analysis.

M differs from conventional heterogeneity metrics (Q-statistic, I2), in that, it measures heterogeneity across multiple independently associated variants, whilst (Q-statistic, I2) measure heterogeneity at individual variants. Essentially, M measures systematic heterogeneity, whilst (Q-statistic, I2) measure random variant-specific heterogeneity.

Sources of systematic heterogeneity

Systematic heterogeneity can arise in a meta-analysis due to differences in the study characteristics of participating studies. Some of the differences may include: ancestry, allele frequencies, phenotype definition, age-of-disease onset, family-history, gender, linkage disequilibrium and quality control thresholds.

Practical benefits of exploring systematic heterogeneity

  • Reveal studies showing systematically weaker effects than average which could lower the power of a meta-analysis to detect genetic signals. For example, outlier studies that pass typical quality control checks (genotype call rate, Hardy-Weinberg equilibrium cutoffs, genomic control) but might show no association with phenotype of interest due to faulty genotype data (e.g. flipped alleles and/or strands, incorrect minor allele frequencies).

  • Reveal studies showing systematically stronger effects than average which can elucidate biologically important differences among the studies e.g. sexual dimorphism or sub-phenotype variability.

Installation: Stata

  1. Start stata
  2. To install the getmstatistic stata module: ssc install getmstatistic
  3. To get the example dataset in your current working directory: net get getmstatistic
  4. You're all set, getmstatistic is installed, try some of the examples in the getmstatistic help file

Tip! getmstatistic depends on the following user-written Stata commands which can be installed using ssc install package-name or findit package-name:

  • latabstat
  • metareg
  • savesome
  • tabstat
  • qqvalue

A full list of getmstatistic dependencies can be found in the help file.


``` 1. Unzip the folder

Tip! the folder should contain the following files: getmstatistic.ado getmstatistic.sthlp heartgenes214.dta

  1. Start stata

  2. Locate your personal directory where stata stores user generated files by typing: sysdir sysdir

Tip! on mac the ado/personal directory is likely to be at: ~/Library/Application Support/Stata/ado/personal/ for linux: ~/ado/personal/ for windows: c:\ado\personal\

  1. Copy getmstatistic.ado and getmstatistic.sthlp to the g sub-directory in personal

Tip! if the g sub-directory does not exist, that just means you do not have user generated commands that start with the letter g. In that case create a folder named g in the personal directory.

  1. Type help getmstatistic in Stata to open the getmstatistic help file.

  2. Load the example dataset: heartgenes214.dta

  3. You're all set, getmstatistic is installed, try some of the examples in the getmstatistic help file

```

Installation: getmstatistic R package

```{r}

To install the release version from CRAN:

install.packages("getmstatistic")

Load libraries

library(getmstatistic) # for calculating M statistics library(gridExtra) # for generating tables

To install the development version from GitHub:

install devtools

install.packages("devtools")

install getmstatistic

library(devtools) devtools::install_github("magosil86/getmstatistic")

Load libraries

library(getmstatistic) # for calculating M statistics library(gridExtra) # for generating tables

```

Usage

Details

  • Essentially, M statistics are computed by aggregating standardized predicted random effects (SPREs). To read up about the statistical theory behind the M statistic see:

Magosi LE, Goel A, Hopewell JC, Farrall M, on behalf of the CARDIoGRAMplusC4D Consortium (2017) Identifying systematic heterogeneity patterns in genetic association meta-analysis studies. PLoS Genet 13(5): e1006755. https://doi.org/10.1371/journal.pgen.1006755.

Getting help

To suggest new features, learn about getmstatistic updates, report bugs, ask questions about the mstatistic, or just interact with other users, sign up to the getmstatistic mailing list.

Code of conduct

Contributions are welcome. Please observe the Contributor Code of Conduct when participating in this project.

Citation

Magosi LE, Goel A, Hopewell JC, Farrall M, on behalf of the CARDIoGRAMplusC4D Consortium (2017) Identifying systematic heterogeneity patterns in genetic association meta-analysis studies. PLoS Genet 13(5): e1006755. https://doi.org/10.1371/journal.pgen.1006755.

Acknowledgements.

Roger M. Harbord’s metareg command for computation of standardized predicted random effects which are then incorporated into calculations for the M statistics. Harbord, R. M., & Higgins, J. P. T. (2008). Meta-regression in Stata. Stata Journal 8: 493‚Äì519.

Authors.

Lerato E. Magosi, Jemma C. Hopewell and Martin Farrall.

Maintainer.

Lerato E. Magosi lmagosi@well.ox.ac.uk or magosil86@gmail.com

License

See the LICENSE file.

Owner

  • Login: magosil86
  • Kind: user
  • Location: Oxford
  • Company: University of Oxford

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 95
  • Total Committers: 2
  • Avg Commits per committer: 47.5
  • Development Distribution Score (DDS): 0.011
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
magosil86 m****6@g****m 94
Damien Croteau-Chonka 2****a 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 7 months
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • dcroteau-chonka (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 264 last-month
  • Total docker downloads: 43,390
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: getmstatistic

Quantifying Systematic Heterogeneity in Meta-Analysis

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 264 Last month
  • Docker Downloads: 43,390
Rankings
Forks count: 21.9%
Stargazers count: 26.2%
Dependent packages count: 29.8%
Average: 31.6%
Dependent repos count: 35.5%
Downloads: 44.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.1.0 depends
  • ggplot2 >= 1.0.1 imports
  • gridExtra >= 0.9.1 imports
  • gtable >= 0.1.2 imports
  • metafor >= 1.9 imports
  • psych >= 1.5.1 imports
  • stargazer >= 5.1 imports
  • covr * suggests
  • foreign >= 0.8 suggests
  • knitr >= 1.10.5 suggests
  • rmarkdown * suggests
  • testthat * suggests