Learn R Programming

gtexr (version 0.2.1)

get_file_list: Get File List

Description

Get all the files in GTEx dataset for Download page

GTEx Portal API documentation

Usage

get_file_list(.return_raw = FALSE)

Value

A tibble. Or a list if .return_raw = TRUE.

Arguments

.return_raw

Logical. If TRUE, return the raw API JSON response. Default = FALSE

Details

The returned tibble includes a nested list column, "filesets". This details files, sub-categorised by fileset (see examples section).

See Also

Other Datasets Endpoints: get_annotation(), get_collapsed_gene_model_exon(), get_downloads_page_data(), get_full_get_collapsed_gene_model_exon(), get_functional_annotation(), get_linkage_disequilibrium_by_variant_data(), get_linkage_disequilibrium_data(), get_sample_datasets(), get_subject(), get_tissue_site_detail(), get_variant(), get_variant_by_location()

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("IN_PKGDOWN"), "true")
# Column "filesets" is a list column
get_file_list()

# Get "GTEx Analysis V9" file list
gtex_v9_files <- get_file_list() |>
  dplyr::filter(name == "GTEx Analysis V9") |>
  dplyr::pull(filesets)

# "GTEx Analysis V9" filesets
names(gtex_v9_files[[1]])

# "GTEx Analysis V9", "snRNA-Seq Data" fileset files
names(gtex_v9_files[[1]][["snRNA-Seq Data"]]$files)
}

Run the code above in your browser using DataLab