-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
… updated also
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
#'Get Tissue Site Detail | ||
#' Get Tissue Site Detail | ||
#' | ||
#'@description | ||
#' - Retrieve all tissue site detail information in the database | ||
#' @description Retrieve all tissue site detail information in the database | ||
#' | ||
#'[GTEx Portal API | ||
#'documentation](https://gtexportal.org/api/v2/redoc#tag/Datasets-Endpoints/operation/get_tissue_site_detail_api_v2_dataset_tissueSiteDetail_get) | ||
#' [GTEx Portal API | ||
#' documentation](https://gtexportal.org/api/v2/redoc#tag/Datasets-Endpoints/operation/get_tissue_site_detail_api_v2_dataset_tissueSiteDetail_get) | ||
#' | ||
#'@inheritParams gtexr_arguments | ||
#'@return A Tibble | ||
#'@export | ||
#'@family Datasets Endpoints | ||
#' @inheritParams gtexr_arguments | ||
#' @return A tibble | ||
#' @export | ||
#' @family Datasets Endpoints | ||
#' | ||
#' @examples | ||
#' get_tissue_site_detail() | ||
#' \dontrun{ | ||
#' # returns a tibble with one row per tissue | ||
#' get_tissue_site_detail() | ||
#' | ||
#' # `eqtlSampleSummary` and `rnaSeqSampleSummary` are list columns | ||
#' bladder_site_details <- get_tissue_site_detail() |> | ||
#' dplyr::filter(tissueSiteDetailId == "Bladder") | ||
#' | ||
#' purrr::pluck(bladder_site_details, "eqtlSampleSummary", 1) | ||
#' | ||
#' purrr::pluck(bladder_site_details, "rnaSeqSampleSummary", 1) | ||
#' } | ||
get_tissue_site_detail <- function(page = 0, | ||
itemsPerPage = 250){ | ||
gtex_query(endpoint = "dataset/tissueSiteDetail") | ||
result <- gtex_query(endpoint = "dataset/tissueSiteDetail", return_raw = TRUE) | ||
|
||
paging_info_messages(result) | ||
|
||
result$data |> | ||
purrr::map(\(x) purrr::map_if(x, is.list, \(y) list(y))) |> | ||
dplyr::bind_rows() | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.