Skip to content

Commit 7976c28

Browse files
authored
Merge pull request #554 from remlapmot/v0-6-7
TwoSampleMR 0.6.7
2 parents 78d7988 + 9b0e90d commit 7976c28

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/check-full.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
- uses: r-lib/actions/setup-r-dependencies@v2
5555
with:
5656
extra-packages: >
57-
any::rcmdcheck
57+
any::rcmdcheck, MendelianRandomization=?ignore-before-r=4.4.0
5858
needs: check
59+
upgrade: 'TRUE'
5960

6061
- name: Create and populate .Renviron file
6162
run: |

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: TwoSampleMR
22
Title: Two Sample MR Functions and Interface to MR Base Database
3-
Version: 0.6.6
3+
Version: 0.6.7
44
Authors@R: c(
55
person("Gibran", "Hemani", , "g.hemani@bristol.ac.uk", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-0920-1055")),

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# TwoSampleMR v0.6.7
2+
3+
(Release date 2024-08-21)
4+
5+
* Update OpenGWAS API URLs
6+
* Minor tweak to `R CMD check` GitHub Actions due to the rjson hard dependency of the MendelianRandomization package now requiring R >= 4.4.0
7+
* Add dark mode to pkgdown site
8+
19
# TwoSampleMR v0.6.6
210

311
(Release date 2024-07-06)

tests/testthat/test_otherformats.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ load(system.file("extdata", "test_commondata.RData", package="TwoSampleMR"))
55

66

77
test_that("MRInput", {
8+
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
89
w <- dat_to_MRInput(dat, get_correlations=FALSE)
910
expect_true(length(w) == 1)
1011
expect_true(class(w) == "list")
@@ -15,6 +16,7 @@ test_that("MRInput with cor", {
1516
skip_on_cran()
1617
skip_if_offline()
1718
skip_if_offline(host = "api.opengwas.io")
19+
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
1820
w <- tryCatch(dat_to_MRInput(dat, get_correlations=TRUE)[[1]],
1921
error = skip("Server issues"),
2022
warning = expect_warning())

vignettes/gwas2020.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ Automated download from the EBI repository, and an automated upload system and b
7373

7474
### Error messages are more informative
7575

76-
Previously if a query to the database failed it didn't give a reason, hopefully there is more clarity regarding what is happening now. You can also check the status of the server here: https://gwas-api.mrcieu.ac.uk/
76+
Previously if a query to the database failed it didn't give a reason, hopefully there is more clarity regarding what is happening now. You can also check the status of the server here: https://api.opengwas.io/api/
7777

7878
### Easier programmatic access to the database
7979

8080
We are trying to make it as flexible as possible to access the data. The TwoSampleMR R package was previously the only programmatic way to access the data, now we have the following options:
8181

8282
- [ieugwasr R package](https://mrcieu.github.io/ieugwasr/): All the TwoSampleMR functions that access the data are done by calling this package now. It is a simple wrapper around the API that controls access to the database.
8383
- [ieugwaspy python package](https://github.com/MRCIEU/ieugwaspy/): Similar functionality to ieugwasr (Under construction).
84-
- [API](https://gwas-api.mrcieu.ac.uk/): You can use the API directly, e.g. for building your own services or applications.
84+
- [API](https://api.opengwas.io/api/): You can use the API directly, e.g. for building your own services or applications.
8585

8686
### Local LD operations
8787

@@ -98,7 +98,7 @@ Either the data in the database, or the GWAS VCF files, can be queried and the r
9898
## Key links
9999

100100
- The IEU GWAS database: https://gwas.mrcieu.ac.uk
101-
- API to the IEU GWAS database: https://gwas-api.mrcieu.ac.uk
101+
- API to the IEU GWAS database: https://api.opengwas.io/api/
102102
- ieugwasr package, for R access to the API: https://mrcieu.github.io/ieugwasr/
103103
- ieugwaspy package, for python access to the API: https://github.com/MRCIEU/ieugwaspy/ (Under construction)
104104
- gwasvcf package, R interface to GWAS VCF files: https://mrcieu.github.io/gwasvcf/

0 commit comments

Comments
 (0)