getmstatistic
Quantifying Systematic Heterogeneity in Meta-Analysis
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
Repository
Quantifying Systematic Heterogeneity in Meta-Analysis
Basic Info
- Host: GitHub
- Owner: magosil86
- License: other
- Language: R
- Default Branch: master
- Homepage: https://magosil86.github.io/getmstatistic/
- Size: 2.28 MB
Statistics
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
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
- Install getmstatistic Stata command from SSC
- Start stata
- To install the getmstatistic stata module:
ssc install getmstatistic - To get the example dataset in your current working directory:
net get getmstatistic - 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.
Install getmstatistic Stata command manually
Download the getmstatistic zip file: getmstatistic0.1.1stata_ssc.zip
``` 1. Unzip the folder
Tip! the folder should contain the following files: getmstatistic.ado getmstatistic.sthlp heartgenes214.dta
Start stata
Locate your personal directory where stata stores user generated files by typing:
sysdirsysdir
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\
- 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.
Type help getmstatistic in Stata to open the getmstatistic help file.
Load the example dataset: heartgenes214.dta
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
- Take a look at an example workflow
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
- Repositories: 37
- Profile: https://github.com/magosil86
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | 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
- Homepage: https://magosil86.github.io/getmstatistic/
- Documentation: http://cran.r-project.org/web/packages/getmstatistic/getmstatistic.pdf
- License: MIT + file LICENSE
-
Latest release: 0.2.2
published almost 5 years ago
Rankings
Maintainers (1)
Dependencies
- 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