galaxy_get_file_info: Get information for one or more Galaxy datasets

View source: R/2025-10-27_JF_R_Galaxy_functions.R

galaxy_get_file_infoR Documentation

Get information for one or more Galaxy datasets

Description

Retrieves metadata for one or more Galaxy history datasets (HDAs), including name, size, type, state, and deletion status.

Usage

galaxy_get_file_info(file_ids, galaxy_url = "https://usegalaxy.eu")

Arguments

file_ids

Character vector of Galaxy dataset IDs.

galaxy_url

Character. Base URL of the Galaxy instance (for example "https://usegalaxy.eu"). If the environment variable GALAXY_URL is set, it takes precedence.

Details

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.

Value

A data.frame with one row per dataset and the columns: id, name, size_bytes, human_size, file_type, state, deleted, stringsAsFactors.

Examples


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)


GalaxyR documentation built on July 6, 2026, 5:08 p.m.