Skip to content

Commit efc30d0

Browse files
authored
Merge pull request #588 from remlapmot/issue-586
TwoSampleMR 0.6.9
2 parents 7009a54 + 93fd303 commit efc30d0

File tree

14 files changed

+35
-32
lines changed

14 files changed

+35
-32
lines changed

DESCRIPTION

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: TwoSampleMR
2-
Title: Two Sample MR Functions and Interface to MR Base Database
3-
Version: 0.6.8
2+
Title: Two Sample MR Functions and Interface to MRC Integrative Epidemiology Unit OpenGWAS Database
3+
Version: 0.6.9
44
Authors@R: c(
55
person("Gibran", "Hemani", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-0920-1055")),
@@ -16,12 +16,9 @@ Authors@R: c(
1616
comment = c(ORCID = "0000-0003-4655-4511"))
1717
)
1818
Description: A package for performing Mendelian randomization using GWAS
19-
summary data. It uses the IEU GWAS database
19+
summary data. It uses the IEU OpenGWAS database
2020
<https://gwas.mrcieu.ac.uk/> to automatically obtain data, and a wide
21-
range of methods to run the analysis. You can use the MR-Base web app
22-
<https://www.mrbase.org/> to try out a limited range of the
23-
functionality in this package, but for any serious work we strongly
24-
recommend using this R package.
21+
range of methods to run the analysis.
2522
License: MIT + file LICENSE
2623
URL: https://github.com/MRCIEU/TwoSampleMR,
2724
https://mrcieu.github.io/TwoSampleMR/

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# TwoSampleMR v0.6.9
2+
3+
(Release date 2025-02-05)
4+
5+
* Fixed a bug in `format_data()` when the `log_pval` argument was set to `TRUE`.
6+
The specified p-value column is now used (thanks to @luddeluddis)
7+
* Amend references to MR-Base to OpenGWAS
8+
19
# TwoSampleMR v0.6.8
210

311
(Release date 2024-09-06)
@@ -328,5 +336,4 @@ TwoSampleMR v0.3.1
328336
(Release date: 2017-11-22)
329337

330338
* One of the external packages that TwoSampleMR depends upon had changed, making the authorisation behaviour change. The authorisation was timing out after an hour and it was not refreshing after its timeout. This has now been fixed - the authorisation token will refresh after an hour.
331-
332339
* The authorisation token used to be stored in a hidden file called .httr-oauth. This has now been changed - it will be stored in a visible file called 'mrbase.oauth'.

R/forest_plot2.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#'
1212
#' By default it uses the [available_outcomes()] function to retrieve the study level characteristics for the outcome trait,
1313
#' including sample size and outcome category.
14-
#' This assumes the MR analysis was performed using outcome GWAS(s) contained in MR-Base.
14+
#' This assumes the MR analysis was performed using outcome GWAS(s) contained in OpenGWAS.
1515
#'
1616
#' If \code{ao_slc} is set to \code{TRUE} then the user must supply their own study level characteristics.
17-
#' This is useful when the user has supplied their own outcome GWAS results (i.e. they are not in MR-Base).
17+
#' This is useful when the user has supplied their own outcome GWAS results (i.e. they are not in OpenGWAS).
1818
#'
1919
#' @param mr_res Results from [mr()].
2020
#' @param exponentiate Convert effects to OR? The default is `FALSE`.

R/instruments.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Find instruments for use in MR from the MR Base database
1+
#' Find instruments for use in MR from the OpenGWAS database
22
#'
33
#' This function searches for GWAS significant SNPs (for a given p-value) for a specified set of outcomes.
44
#' It then performs LD based clumping to return only independent significant associations.

R/other_formats.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' function converts from the TwoSampleMR format to the MRInput class.
66
#'
77
#' @param dat Output from the [harmonise_data()] function.
8-
#' @param get_correlations Default `FALSE`. If `TRUE` then extract the LD matrix for the SNPs from the European 1000 genomes data on the MR-Base server.
8+
#' @param get_correlations Default `FALSE`. If `TRUE` then extract the LD matrix for the SNPs from the European 1000 genomes data on OpenGWAS.
99
#' @param pop If `get_correlations` is `TRUE` then use the following
1010
#'
1111
#' @export

R/read_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ if (inherits(dat, "data.table")) {
212212

213213
if(log_pval)
214214
{
215-
dat$pval <- 10^-dat[[pval_col]]
215+
dat[[pval_col]] <- 10^-dat[[pval_col]]
216216
}
217217

218218
# Remove duplicated SNPs

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ badge](https://mrcieu.r-universe.dev/badges/TwoSampleMR)](https://mrcieu.r-unive
1616
<!-- badges: end -->
1717

1818
A package for performing Mendelian randomization using GWAS summary
19-
data. It uses the [IEU GWAS database](https://gwas.mrcieu.ac.uk/) to
19+
data. It uses the [IEU OpenGWAS database](https://gwas.mrcieu.ac.uk/) to
2020
obtain data automatically, and a wide range of methods to run the
21-
analysis. You can use the [MR-Base web app](https://www.mrbase.org/) to
22-
try out a limited range of the functionality in this package, but for
23-
any serious work we strongly recommend using this R package.
21+
analysis.
2422

2523
## January 2020 major update
2624

@@ -54,8 +52,9 @@ To update the package just run the
5452

5553
## Docker
5654

57-
A docker image containing R with the TwoSampleMR package pre-installed
58-
is available here: <https://hub.docker.com/r/mrcieu/twosamplemr>
55+
A multi-platform docker image containing R with the TwoSampleMR package
56+
pre-installed (for both x86_64 and ARM computers) is available here:
57+
<https://hub.docker.com/r/mrcieu/twosamplemr>
5958

6059
<!-- Additional content -->
6160

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![TwoSampleMR status badge](https://mrcieu.r-universe.dev/badges/TwoSampleMR)](https://mrcieu.r-universe.dev/TwoSampleMR)
88
<!-- badges: end -->
99

10-
A package for performing Mendelian randomization using GWAS summary data. It uses the [IEU GWAS database](https://gwas.mrcieu.ac.uk/) to obtain data automatically, and a wide range of methods to run the analysis. You can use the [MR-Base web app](https://www.mrbase.org/) to try out a limited range of the functionality in this package, but for any serious work we strongly recommend using this R package.
10+
A package for performing Mendelian randomization using GWAS summary data. It uses the [IEU OpenGWAS database](https://gwas.mrcieu.ac.uk/) to obtain data automatically, and a wide range of methods to run the analysis.
1111

1212
## January 2020 major update
1313

@@ -36,4 +36,4 @@ To update the package just run the `remotes::install_github("MRCIEU/TwoSampleMR"
3636

3737
## Docker
3838

39-
A docker image containing R with the TwoSampleMR package pre-installed is available here: https://hub.docker.com/r/mrcieu/twosamplemr
39+
A multi-platform docker image containing R with the TwoSampleMR package pre-installed (for both x86_64 and ARM computers) is available here: https://hub.docker.com/r/mrcieu/twosamplemr

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
c(
22
bibentry(
3-
header = "If using MR-Base, the IEU GWAS database, or the TwoSampleMR R package please cite:",
3+
header = "If using MR-Base, the IEU OpenGWAS database, or the TwoSampleMR R package please cite:",
44
bibtype = "Article",
55
author = c(
66
person("G.", "Hemani", role = c("aut", "cre")),
@@ -62,4 +62,4 @@ bibentry(
6262
"Orienting the causal relationship between imprecisely measured traits using GWAS summary data.",
6363
"PLOS Genetics 13(11): e1007081. https://doi.org/10.1371/journal.pgen.1007081")
6464
)
65-
)
65+
)

man/TwoSampleMR-package.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)