This service returns information of subjects used in analyses from all datasets. Results may be filtered by dataset ID, subject ID, sex, age bracket or Hardy Scale. By default, this service queries the latest GTEx release.
get_subject(
datasetId = "gtex_v8",
sex = NULL,
ageBrackets = NULL,
hardyScale = NULL,
subjectIds = NULL,
page = 0,
itemsPerPage = getOption("gtexr.itemsPerPage"),
.verbose = getOption("gtexr.verbose"),
.return_raw = FALSE
)A tibble. Or a list if .return_raw = TRUE.
String. Unique identifier of a dataset. Usually includes a data source and data release. Options: "gtex_v8", "gtex_snrnaseq_pilot".
String. Options: "male", "female".
The age bracket(s) of the donors of interest. Options: "20-29", "30-39", "40-49", "50-59", "60-69", "70-79".
String A Hardy Scale of interest. Options: "Ventilator case", "Fast death - violent", "Fast death - natural causes", "Intermediate death", "Slow death".
Character vector. GTEx subject ID.
Integer (default = 0).
Integer (default = 250). Set globally to maximum value
100000 with options(list(gtexr.itemsPerPage = 100000)).
Logical. If TRUE (default), print paging information. Set
to FALSE globally with options(list(gtexr.verbose = FALSE)).
Logical. If TRUE, return the raw API JSON response.
Default = FALSE
Other Datasets Endpoints:
get_annotation(),
get_collapsed_gene_model_exon(),
get_downloads_page_data(),
get_file_list(),
get_full_get_collapsed_gene_model_exon(),
get_functional_annotation(),
get_linkage_disequilibrium_by_variant_data(),
get_linkage_disequilibrium_data(),
get_sample_datasets(),
get_tissue_site_detail(),
get_variant(),
get_variant_by_location()
if (FALSE) { # identical(Sys.getenv("IN_PKGDOWN"), "true")
get_subject()
}
Run the code above in your browser using DataLab