Skip to content

Commit

Permalink
v31
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksunderland committed Sep 17, 2024
1 parent 5babc1e commit 2d97072
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: genepi.utils
Title: GenEpi Utility Functions
Version: 0.0.30
Version: 0.0.31
Authors@R: c(person("Nicholas", "Sunderland", , "nicholas.sunderland@bristol.ac.uk", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3625-630X")))
Description: The genepi.utils package is a collection of utility functions for working with genetic epidemiology data.
License: MIT + file LICENSE
Expand Down
1 change: 0 additions & 1 deletion R/class_gwas.R
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,6 @@ method(get_proxies, GWAS) <- function(x,
# do any of the proxies exist in the GWAS object
nproxies <- length(unique(proxies$proxy_rsid))
proxies <- proxies[proxy_rsid %in% x@rsid][, .SD[which.max(rstat)], by=rsid]
if (nrow(proxies) == 0) stop(paste0(nproxies, " found however none present in the GWAS object"))

# find if the found effect allele matches the allele in the proxies, if not we need to flip the effect
idx_orig <- match(proxies$proxy_rsid, x@rsid)
Expand Down

0 comments on commit 2d97072

Please sign in to comment.