Skip to content

Commit

Permalink
add calculate_ieqtls
Browse files Browse the repository at this point in the history
  • Loading branch information
abolvera committed Apr 24, 2024
1 parent 836b938 commit 326d75f
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export(available_tissueSiteDetailIds)
export(calculate_eqtls)
export(calculate_ieqtls)
export(get_annotation)
export(get_collapsed_gene_model_exon)
export(get_dataset_info)
Expand Down
30 changes: 30 additions & 0 deletions R/calculate_ieqtls.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#' Calculate Ieqtls
#'
#'Calculate your own Cell Specific eQTLs.
#'
#'- This service calculates the gene-variant association for any given pair of gene and variant, which may or may not be significant.
#'- This requires as input a GENCODE ID, GTEx variant ID, and tissue site detail ID.
#'By default, the calculation is based on the latest GTEx release.
#'
#' @inheritParams gtexr_arguments
#'
#' @return A tibble.
#' @export
#' @family Dynamic Association Endpoints
#'
#' @examples
#' \dontrun{
#' # perform request
#' calculate_eqtls(cellType = "Adipocytes", tissueSiteDetailId = "Whole_Blood",
#' gencodeId = "ENSG00000203782.5",
#' variantId = "rs79641866")
#'}
calculate_ieqtls <-
function(cellType,
tissueSiteDetailId,
gencodeId,
variantId,
datasetId = "gtex_v8") {
gtex_query(endpoint = "association/dynieqtl")
}

3 changes: 3 additions & 0 deletions R/gtexr_arguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#' @param autolysisScores Character vector. Options: "None", "Mild", "Moderate",
#' "Severe".
#' @param bp_window Integer.
#' @param cellType String. "Adipocytes", "Epithelial_cells", "Hepatocytes",
#' "Keratinocytes", "Myocytes", "Neurons", "Neutrophils".
#' @param chromosome String. One of "chr1", "chr2", "chr3", "chr4", "chr5",
#' "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12", "chr13",
#' "chr14", "chr15", "chr16", "chr17", "chr18", "chr19", "chr20", "chr21",
Expand Down Expand Up @@ -97,6 +99,7 @@ gtexr_arguments <- function() {
"aliquotIds", "character", FALSE, TRUE,
"autolysisScores", "character", FALSE, TRUE,
"bp_window", "integer", TRUE, FALSE,
"cellType", "character", TRUE, FALSE,
"chromosome", "character", TRUE, FALSE,
"datasetId", "character", TRUE, FALSE,
"dataTypes", "character", FALSE, TRUE,
Expand Down
4 changes: 4 additions & 0 deletions man/calculate_eqtls.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions man/calculate_ieqtls.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/gtexr_arguments.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 326d75f

Please sign in to comment.