View source: R/2025-10-27_JF_R_Galaxy_functions.R
| galaxy_get_file_info | R Documentation |
Retrieves metadata for one or more Galaxy history datasets (HDAs), including name, size, type, state, and deletion status.
galaxy_get_file_info(file_ids, galaxy_url = "https://usegalaxy.eu")
file_ids |
Character vector of Galaxy dataset IDs. |
galaxy_url |
Character. Base URL of the Galaxy instance
(for example |
This function queries the /api/datasets/{id} endpoint for each
provided dataset ID. If a dataset cannot be retrieved, its fields
are returned as NA.
A data.frame with one row per dataset and the columns:
id, name, size_bytes, human_size,
file_type, state, deleted, stringsAsFactors.
tmp_dir <- tempdir()
f_name <- "iris.csv"
f_path <- paste(tmp_dir, f_name, sep = "\\")
write.csv(datasets::iris, f_path, row.names = FALSE)
history_id <- galaxy_initialize("IRIS")
file_id <- galaxy_upload_https(f_path, history_id)
galaxy_get_file_info(file_id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.