Skip to content

Commit 68c632d

Browse files
committed
fix GD data files again
1 parent f00dcd0 commit 68c632d

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
name: pkgdown
1313

1414
env:
15-
VERSION: '1.6.1'
15+
VERSION: '1.5.9'
1616
jobs:
1717
pkgdown:
1818
if: "startsWith(github.event.head_commit.message, 'Bump version:')"

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: gwasOncoX
22
Type: Package
33
Title: Human GWAS tracks for the oncology domain
4-
Version: 1.6.1
4+
Version: 1.5.9
55
Authors@R: person(given = "Sigve", family = "Nakken", role = c("aut", "cre"),
66
email = "sigven@ifi.uio.no",
77
comment = c(ORCID = "0000-0001-8468-2050"))

R/sysdata.rda

3 Bytes
Binary file not shown.

data-raw/data-raw.R

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ gwas_hits_pr_rsid[['all']] <- as.data.frame(
140140
)
141141

142142

143-
version_bumped <- "1.6.1"
143+
version_bumped <- "1.6.0"
144144

145145
for (c in gwas_collections) {
146146

@@ -167,7 +167,8 @@ for (c in gwas_collections) {
167167
tidyr::separate_rows(gwas_hit, sep=",") |>
168168
tidyr::separate(
169169
gwas_hit,
170-
c("rsid2","risk_allele","pmid","tag","pvalue","efo_id"),
170+
c("rsid2","risk_allele","pmid",
171+
"tag","pvalue","efo_id"),
171172
sep="\\|") |>
172173
dplyr::filter(risk_allele != "NA") |>
173174
dplyr::filter(risk_allele == ref | risk_allele == alt) |>
@@ -266,9 +267,15 @@ for (elem in c('all','cancer')) {
266267
for (format in c("bed", "vcf")) {
267268
for (build in c("grch37", "grch38")) {
268269
for (ftype in c("gz", "gz.tbi")) {
269-
(gd_rec <- googledrive::drive_upload(
270+
local_fname <-
270271
file.path("data-raw", "gd_local",
271-
paste0(prefix,"_",build,".",format, ".", ftype)),
272+
paste0(prefix,"_",build,".",format, ".", ftype))
273+
if(!file.exists(local_fname)){
274+
stop(paste0("File ", local_fname, " does not exist - ",
275+
"check that print_gwas_vcf and print_gwas_bed functions have been run"))
276+
}
277+
(gd_rec <- googledrive::drive_upload(
278+
local_fname,
272279
paste0("gwasOncoX/", prefix,"_",build,".", format, ".", ftype)
273280
))
274281

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ citEntry(
55
title = "gwasOncoX: Low-to-moderate risk variants from GWAS studies in cancer",
66
author = "Sigve Nakken",
77
year = "2026",
8-
note = "R package version 1.6.1",
8+
note = "R package version 1.5.9",
99
url = "https://github.com/sigven/gwasOncoX",
1010
textVersion = paste("Nakken S. ","(2026)",
1111
" gwasOncoX: Low-to-moderate risk variants in cancer.",
12-
" R package version 1.6.1.",
12+
" R package version 1.5.9.",
1313
" (https://github.com/sigven/gwasOncoX)")
1414
)

0 commit comments

Comments
 (0)