Repository navigation
Convert to httr2 - #59
Merged
Merged
Conversation
- download, head calls updated
- TODO: need to pass proxy through properly to internal functions. This
previously was not needed because set the proxy globally which is no longer
an option
creat a helper function to get proxy information
Contributor
Author
|
If testing with hubs should use the changes and PR |
LiNk-NY
approved these changes
Feb 17, 2025
Contributor
There was a problem hiding this comment.
This looks good to me. I was able to download the resource behind a proxy:
### docker run -d --rm --name squid -p 3128:3128 ubuntu/squid
library(AnnotationHub)
proxy <- "http://localhost:3128"
setAnnotationHubOption("PROXY", proxy)
ah <- AnnotationHub()
# Assuming valid proxy connection through 'http://localhost:3128'
# If you experience connection issues consider using 'localHub=TRUE'
# [ truncated ...]
ah[["AH69303"]]
GRanges object with 324754 ranges and 4 metadata columns:
seqnames ranges strand | source type score phase
<Rle> <IRanges> <Rle> | <factor> <factor> <numeric> <integer>
[1] OOHO01000004.1 5896-6324 - | ensembl transcript NA <NA>
[2] OOHO01000004.1 5896-6324 - | ensembl exon NA <NA>
[3] OOHO01000004.1 10788-13607 - | ensembl transcript NA <NA>
[4] OOHO01000004.1 13277-13607 - | ensembl exon NA <NA>
[5] OOHO01000004.1 12737-12866 - | ensembl exon NA <NA>
... ... ... ... . ... ... ... ...
[324750] OOHO01000042.1 3682-3884 + | ensembl exon NA <NA>
[324751] OOHO01000042.1 5691-5804 + | ensembl exon NA <NA>
[324752] OOHO01000042.1 7630-7716 + | ensembl exon NA <NA>
[324753] OOHO01000042.1 9517-9625 + | ensembl exon NA <NA>
[324754] OOHO01000042.1 11770-11805 + | ensembl exon NA <NA>
-------
seqinfo: 69 sequences from fAnaTes1.1 genome; no seqlengths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Convert from httr to httr2