Skip to content

Commit

Permalink
Update hotspot-annotate-maf.R
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoooh committed Sep 20, 2024
1 parent 6325d38 commit 52355be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/hotspot-annotate-maf.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#' @name hotspot_annotate_maf
NULL

load_gene_annotation = function(oncokbbaseurl = ' https://data-legacy.oncokb.aws.mskcc.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://data-legacy.oncokb.aws.mskcc.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)) {
Expand Down

0 comments on commit 52355be

Please sign in to comment.