View source: R/file_retrieve.R
file_retrieve | R Documentation |
Download a remote file and cache it to re-use later
file_retrieve(
url,
bfc = recount3_cache(),
verbose = getOption("recount3_verbose", TRUE)
)
url |
A |
bfc |
A BiocFileCache-class
object where the files will be cached to, typically created by
|
verbose |
A |
A character(1)
with the path to the cached file.
Other internal functions for accessing the recount3 data:
annotation_ext()
,
create_rse_manual()
,
locate_url_ann()
,
locate_url()
,
project_homes()
,
read_counts()
,
read_metadata()
## Download the metadata file for project SRP009615
url_SRP009615_meta <- locate_url(
"SRP009615",
"data_sources/sra"
)
local_SRP009615_meta <- file_retrieve(
url = url_SRP009615_meta
)
local_SRP009615_meta
## Download the gene counts file for project SRP009615
url_SRP009615_gene <- locate_url(
"SRP009615",
"data_sources/sra",
type = "gene"
)
local_SRP009615_gene <- file_retrieve(
url = url_SRP009615_gene
)
local_SRP009615_gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.