Skip to content

Commit

Permalink
load httr library
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaJadidAhari committed Jan 13, 2025
1 parent b3f7762 commit f74d7aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Imports:
ggplot2,
ggrepel,
HDF5Array,
httr,
matrixStats,
methods,
OUTRIDER,
Expand Down
4 changes: 2 additions & 2 deletions R/helper-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ updateSeqlevelsStyle <- function(bsgenome, genome_assembly, new_style, old_style
file_url <- "https://www.cmm.in.tum.de/public/paper/FRASER/hg19_NCBI2UCSC.txt"
message(paste0("Downloading seqlevelStyle conversion dict: "), file_url)

response <- GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))
response <- httr::GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))

if (response$status_code == 200) {
assembly_report <- fread(conversion_dict_path)
Expand All @@ -726,7 +726,7 @@ updateSeqlevelsStyle <- function(bsgenome, genome_assembly, new_style, old_style
file_url <- "https://www.cmm.in.tum.de/public/paper/FRASER/hg38_NCBI2UCSC.txt"
message(paste0("Downloading seqlevelStyle conversion dict: "), file_url)

response <- GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))
response <- httr::GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))

if (response$status_code == 200) {
assembly_report <- fread(conversion_dict_path)
Expand Down

0 comments on commit f74d7aa

Please sign in to comment.