Downloads a Western blot image and returns its path. If it already exists in
the specified location, no downloading will occur unless overwrite = TRUE
.
Will return the local path to the file.
Usage
wb_get(
path,
dest,
overwrite = FALSE,
user = Sys.getenv("WEBBER_USR"),
wb_path = Sys.getenv("WEBBER_WBPATH"),
quiet = FALSE
)
Arguments
- path
Character. The path to the image/directory, sans
wb_path
.- dest
Character. The path to save the image/directory. If it doesn't have an extension, it's assumed you mean a folder, and that folder already exists.
- overwrite
Logical. Should files be overwritten if they already exist?
- user
Character. Whose folder this file should be pulled from.
- wb_path
Character. Path to the top level directory that contains all western blots.
- quiet
Logical. Should this function not message upon finding existing files?
Details
This is a thin wrapper around bladdr::get_gbci_file
, and has hard-coded
paths - so it's more a quality-of-life function.
Examples
if (FALSE) {
wb_get(
"2022-06-22/h3.tif",
tempdir(),
user = "aragaki-kai",
wb_path = "Raw Data/licor"
)
}