Skip to content

Commit 8470e3d

Browse files
authored
Merge pull request #664 from remlapmot/v0-6-27
Remove an unused argument from `extract_instruments()` and `clump_data()`
2 parents 264a8b7 + 19c1375 commit 8470e3d

File tree

9 files changed

+10
-11
lines changed

9 files changed

+10
-11
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ cache$
2020
^\.lintr$
2121
^inst/sandpit$
2222
^air\.toml$
23+
^vignettes/rf\.rdata$

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
2222
env:
2323
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
OPENGWAS_X_TEST_MODE_KEY: ${{ secrets.OPENGWAS_X_TEST_MODE_KEY }}
2425
permissions:
2526
contents: write
2627
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ vignettes/plot1.pdf
2525
vignettes/mr_report.md
2626
vignettes/figure/*.png
2727
vignettes/*.html
28+
rf.rdata

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: TwoSampleMR
22
Title: Two Sample MR Functions and Interface to MRC Integrative
33
Epidemiology Unit OpenGWAS Database
4-
Version: 0.6.26
4+
Version: 0.6.27
55
Authors@R: c(
66
person("Gibran", "Hemani", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-0920-1055")),

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# TwoSampleMR v0.6.27
2+
3+
(Release date 2025-12-15)
4+
5+
* Removed the unused `p2` argument from `extract_instruments()` and the unused `clump_p2` argument from `clump_data()` (thanks @yikeshu0611).
6+
17
# TwoSampleMR v0.6.26
28

39
(Release date 2025-12-12)

R/instruments.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#' @param outcomes Array of outcome IDs (see [available_outcomes()]).
77
#' @param p1 Significance threshold. The default is `5e-8`.
88
#' @param clump Whether to clump results (`1`) or not (`0`). Default is `1`. (`TRUE` and `FALSE` are also allowed for backwards compatibility.)
9-
#' @param p2 Secondary clumping threshold. The default is `5e-8`.
109
#' @param r2 Clumping r2 cut off. The default is `0.001`.
1110
#' @param kb Clumping distance cutoff. The default is `10000`.
1211
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
@@ -18,7 +17,6 @@ extract_instruments <- function(
1817
outcomes,
1918
p1 = 5e-8,
2019
clump = 1,
21-
p2 = 5e-8,
2220
r2 = 0.001,
2321
kb = 10000,
2422
opengwas_jwt = ieugwasr::get_opengwas_jwt(),

R/ld.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#' @param clump_kb Clumping window, default is `10000`.
1717
#' @param clump_r2 Clumping r2 cutoff. Note that this default value has recently changed from `0.01` to `0.001`.
1818
#' @param clump_p1 Clumping sig level for index SNPs, default is `1`.
19-
#' @param clump_p2 Clumping sig level for secondary SNPs, default is `1`.
2019
#' @param pop Super-population to use as reference panel. Default = `"EUR"`. Options are `"EUR"`, `"SAS"`, `"EAS"`, `"AFR"`, `"AMR"`. `'legacy'` also available - which is a previously used version of the EUR panel with a slightly different set of markers
2120
#' @param bfile If this is provided then will use the API. Default = `NULL`
2221
#' @param plink_bin If `NULL` and `bfile` is not `NULL` then will detect packaged plink binary for specific OS. Otherwise specify path to plink binary. Default = `NULL`
@@ -28,7 +27,6 @@ clump_data <- function(
2827
clump_kb = 10000,
2928
clump_r2 = 0.001,
3029
clump_p1 = 1,
31-
clump_p2 = 1,
3230
pop = "EUR",
3331
bfile = NULL,
3432
plink_bin = NULL

man/clump_data.Rd

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

man/extract_instruments.Rd

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

0 commit comments

Comments
 (0)