download(
materialTypes = NULL,
tissueSiteDetailIds = NULL,
pathCategory = NULL,
tissueSampleIds = NULL,
sex = NULL,
sortBy = "sampleId",
sortDirection = "asc",
searchTerm = NULL,
sampleIds = NULL,
subjectIds = NULL,
ageBrackets = NULL,
hardyScales = NULL,
hasExpressionData = NULL,
hasGenotype = NULL,
.return_raw = FALSE
)A tibble. Or a list if .return_raw = TRUE.
String, vector. Options: "Cells:Cell Line Viable", "DNA:DNA Genomic", "DNA:DNA Somatic", "RNA:Total RNA", "Tissue:PAXgene Preserved", "Tissue:PAXgene Preserved Paraffin-embedded", "Tissue:Fresh Frozen Tissue".
Character vector of IDs for tissues of interest.
Can be GTEx specific IDs (e.g. "Whole_Blood"; use
get_tissue_site_detail() to see valid values) or Ontology IDs.
Character vector. Options: "adenoma", "amylacea", "atelectasis", "atherosclerosis", "atherosis", "atrophy", "calcification", "cirrhosis", "clean_specimens", "congestion", "corpora_albicantia", "cyst", "desquamation", "diabetic", "dysplasia", "edema", "emphysema", "esophagitis", "fibrosis", "gastritis", "glomerulosclerosis", "goiter", "gynecomastoid", "hashimoto", "heart_failure_cells", "hemorrhage", "hepatitis", "hyalinization", "hypereosinophilia", "hyperplasia", "hypertrophy", "hypoxic", "infarction", "inflammation", "ischemic_changes", "macrophages", "mastopathy", "metaplasia", "monckeberg", "necrosis", "nephritis", "nephrosclerosis", "no_abnormalities", "nodularity", "pancreatitis", "pigment", "pneumonia", "post_menopausal", "prostatitis", "saponification", "scarring", "sclerotic", "solar_elastosis", "spermatogenesis", "steatosis", "sweat_glands", "tma".
Array of strings. A list of Tissue Sample ID(s).
String. Options: "male", "female".
String. Options: "sampleId", "ischemicTime", "aliquotId", "tissueSampleId", "hardyScale", "pathologyNotes", "ageBracket", "tissueSiteDetailId", "sex".
String. Options: "asc", "desc". Default = "asc".
String.
Character vector. GTEx sample ID.
Character vector. GTEx subject ID.
The age bracket(s) of the donors of interest. Options: "20-29", "30-39", "40-49", "50-59", "60-69", "70-79".
Character vector. A list of Hardy Scale(s) of interest. Options: "Ventilator case", "Fast death - violent", "Fast death - natural causes", "Intermediate death", "Slow death".
Logical.
Logical.
Logical. If TRUE, return the raw API JSON response.
Default = FALSE
Note: running this request with no filters (i.e. download()) raises an error.
Other Biobank Data Endpoints:
get_sample_biobank_data()
if (FALSE) { # identical(Sys.getenv("IN_PKGDOWN"), "true")
download(
materialTypes = "RNA:Total RNA",
tissueSiteDetailIds = "Thyroid",
pathCategory = "clean_specimens",
sex = "male",
ageBrackets = "50-59"
)
}
Run the code above in your browser using DataLab