Get Open Targets disease-gene associations data
NOTE: If you get an error like " Cannot call parquet...",
try running arrow::install_arrow
,
restarting the R session, and trying again.
get_opentargets(
release = "latest",
data_type = c("associationByDatasourceDirect", "associationByDatasourceIndirect",
"associationByDatatypeDirect", "associationByDatatypeIndirect",
"associationByOverallDirect", "associationByOverallIndirect", "l2g")[1],
server = "https://ftp.ebi.ac.uk/pub/databases/opentargets/",
subdir = c("platform/", "genetics/")[1],
subdir2 = c("/output/etl/parquet/", "/")[1],
ftp = paste0(server, subdir, release, subdir2, data_type[1], "/"),
save_dir = cache_dir(),
max_files = NULL,
workers = 1,
force_new = FALSE
)
Open Targets release version.
Type of data to download.
Open Targets server.
Open Targets subdirectory.
Open Targets sub-subdirectory.
The final Open Targets FTP URL.
Directory to save a file to.
Limit the number of files to import
Number (>1) or proportion (<1) of worker cores to use.
If TRUE, force a new download.
if (FALSE) { # \dontrun{
d <- get_opentargets(max_files=2, save_dir=tempdir())
} # }