R/get_eqtl_pval_by_gene.R
    get_eqtl_pval_by_gene.RdThis function retrieves eQTLs, along with its genomic position, beta values and p-values.
get_eqtl_pval_by_gene( ensembl_id, species_name = "homo_sapiens", verbose = FALSE, warnings = TRUE, progress_bar = TRUE )
| ensembl_id | An Ensembl stable identifier, e.g.   | 
    
|---|---|
| species_name | The species name, i.e., the scientific name, all letters
lowercase and space replaced by underscore. Currently, only
  | 
    
| verbose | Whether to be verbose about the http requests and respective responses' status.  | 
    
| warnings | Whether to show warnings.  | 
    
| progress_bar | Whether to show a progress bar.  | 
    
A tibble of 10
variables:
species_nameEnsembl species name: this is the name used
internally by Ensembl to uniquely identify a species by name. It is the
scientific name but formatted without capitalisation and spacing converted
with an underscore, e.g., 'homo_sapiens'.
ensembl_idAn Ensembl stable identifier, e.g.
"ENSG00000248234378".
variant_idVariant identifier, e.g. "rs80100814".
tissueTissue.
display_consequenceVariant consequence type.
seq_region_nameSequence region name (typically a chromosome name) of the variant.
seq_region_startGenomic start position of the variant.
seq_region_endGenomic end position of the variant.
betaThe effect size beta of the eQTL association analysis.
pvalueThe p-value of the eQTL association analysis.
get_eqtl_pval_by_gene() makes GET requests to
/eqtl/id/:species/:stable_id.
get_eqtl_pval_by_gene('ENSG00000248378')#> # A tibble: 0 × 10 #> # … with 10 variables: species_name <chr>, ensembl_id <chr>, variant_id <chr>, #> # tissue <chr>, display_consequence <chr>, seq_region_name <chr>, #> # seq_region_start <int>, seq_region_end <int>, beta <dbl>, pvalue <dbl>