Skip to content

Commit

Permalink
20240922 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Sep 24, 2024
1 parent 73f809b commit 133885f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
6 changes: 3 additions & 3 deletions data-raw/data-raw.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ source("data-raw/gwas_utils.R")

options(timeout = 500000)

catalog_version_date <- '2024-08-12'
ebi_catalog_version_date <- '20240812'
catalog_version_date <- '2024-09-22'
ebi_catalog_version_date <- '20240922'
fname_catalog_associations <-
file.path(
"data-raw",
Expand Down Expand Up @@ -188,7 +188,7 @@ for (c in gwas_collections) {
gwas_phenotype_records <- as.data.frame(
gwas_hits[[c]] |>
dplyr::left_join(
gwas_citations[[c]],
gwas_citations[[c]], by = "pmid",
relationship = "many-to-many") |>
dplyr::mutate(gwas_catalog_version = ebi_catalog_version_date) |>
dplyr::mutate(p_value_verbose = sprintf("%2.1e",p_value)) |>
Expand Down
10 changes: 10 additions & 0 deletions data-raw/gwas_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
#'
get_dbsnp_data <- function(rsids, cache_dbsnp_fname = NA){

# gw_hits <- gwas_hits_pr_rsid$cancer |>
# dplyr::filter(
# stringr::str_detect(rsid, "^rs[0-9]{1,}")) |>
# tidyr::separate(
# gwas_hit,
# c("rsid","risk_allele","pmid","tag","p_value","efo_id"),
# sep = "\\|"
# )

rsids <- rsids[stringr::str_detect(rsids,"^rs[0-9]{1,}")]
rsid_df <- data.frame('rsid' = rsids)
cache_dbsnp <- data.frame()

Expand Down

0 comments on commit 133885f

Please sign in to comment.