| galaxy_list_files | R Documentation |
galaxy_list_files() is an S4 generic. With x as a character scalar,
it is treated as a Galaxy history ID and returns a data frame of history
datasets (files). With x as a Galaxy object, the history ID and URL
are taken from the object.
galaxy_list_files(
x,
include_deleted = FALSE,
include_hidden = FALSE,
galaxy_url = "https://usegalaxy.eu",
limit = 500L
)
## S4 method for signature 'character'
galaxy_list_files(
x,
include_deleted = FALSE,
include_hidden = FALSE,
galaxy_url = "https://usegalaxy.eu",
limit = 500L
)
## S4 method for signature 'Galaxy'
galaxy_list_files(
x,
include_deleted = FALSE,
include_hidden = FALSE,
limit = 500L
)
x |
A history ID ( |
include_deleted |
Logical; if |
|
Logical; if | |
galaxy_url |
Character. Base URL of the Galaxy instance, used by the
character method. If |
limit |
Integer page size for API pagination. Default: |
The function queries /api/histories/{history_id}/contents using
pagination and returns one row per history content item, restricted to
datasets (history_content_type == "dataset" when available).
A data.frame with one row per dataset and columns:
Encoded dataset ID.
Dataset name.
Encoded history ID.
Usually "dataset".
Galaxy item type (if provided by server).
Dataset state (e.g. "ok", "running", "error").
Logical deletion flag.
Logical hidden flag.
Datatype extension (if available).
Dataset size in bytes (if available).
Creation timestamp (if available).
Update timestamp (if available).
If no datasets are found, an empty data frame with these columns is returned.
# Character method (history_id)
hid <- galaxy_initialize("List files example")
files_df <- galaxy_list_files(hid)
head(files_df)
# Galaxy-object method
g <- galaxy(history_name = "List files example")
g <- galaxy_initialize(g)
files_df2 <- galaxy_list_files(g)
head(files_df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.