From 6325d389441036639e403acbcb7b1f10a262348d Mon Sep 17 00:00:00 2001 From: John Orgera <65687576+johnoooh@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:57:44 -0400 Subject: [PATCH] Changed URLs --- R/hotspot-annotate-maf.R | 4 ++-- R/oncokb-annotate-maf.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/hotspot-annotate-maf.R b/R/hotspot-annotate-maf.R index 887a9f9..3b179ce 100644 --- a/R/hotspot-annotate-maf.R +++ b/R/hotspot-annotate-maf.R @@ -18,14 +18,14 @@ #' @name hotspot_annotate_maf NULL -load_gene_annotation = function(oncokbbaseurl = 'https://legacy.oncokb.org/api/v1/genes') { +load_gene_annotation = function(oncokbbaseurl = ' https://data-legacy.oncokb.aws.mskcc.org/api/v1/genes') { read_lines(oncokbbaseurl) %>% fromJSON() } #' @export #' @rdname hotspot_annotate_maf -hotspot_annotate_maf = function(maf, oncokbbaseurl = 'https://legacy.oncokb.org/api/v1/genes', hotspot_tbl = NULL) { +hotspot_annotate_maf = function(maf, oncokbbaseurl = ' https://data-legacy.oncokb.aws.mskcc.org/api/v1/genes', hotspot_tbl = NULL) { if (!inherits(maf, 'data.frame')) stop('Input MAF must be a data frame, preferrable VEP annotated') if (!is.null(hotspot_tbl)) { diff --git a/R/oncokb-annotate-maf.R b/R/oncokb-annotate-maf.R index e647082..62d5424 100644 --- a/R/oncokb-annotate-maf.R +++ b/R/oncokb-annotate-maf.R @@ -67,7 +67,7 @@ query_oncokb = function(gene, protein_change, variant_type, start, end, cancer_t if (variant_type != '') { - base_url = 'http://oncokb.org/legacy-api/indicator.json?source=cbioportal' + base_url = 'https://data-legacy.oncokb.aws.mskcc.org/legacy-api/indicator.json?source=cbioportal' oncokb_version = httr::content(httr::GET(base_url))[['dataVersion']] tag = paste(gene, protein_change, cancer_type, sep = '-')