View source: R/eQTLcatalogue_query.R
eQTLcatalogue_query | R Documentation |
Determines which datasets to query using qtl_search
.
Uses coordinates from stored summary stats files (e.g. GWAS)
to determine which regions to query from eQTL Catalogue.
Each locus file can be stored separately,
or merged together to form one large file with all query results.
eQTLcatalogue_query( sumstats_paths = NULL, output_dir = file.path(tempdir(), "catalogueR_queries"), qtl_search = NULL, multithread_tabix = FALSE, method = c("REST", "tabix"), quant_method = "ge", split_files = TRUE, merge_with_gwas = TRUE, force_new_subset = FALSE, query_genome = "hg19", conda_env = "echoR_mini", nThread = 1, verbose = TRUE )
sumstats_paths |
A list of paths to any number of summary stats files
whose coordinates you want to use to make queries to eQTL Catalogue.
If you wish to add custom names to the loci, simply add these as the
names of the path list
(e.g. The minimum columns in these files required to make queries include:
|
output_dir |
The folder you want the merged gwas/qtl results to be
saved to (set to |
qtl_search |
This function will automatically search for any datasets that match your criterion. For example, if you search "Alasoo_2018", it will query the datasets:
You can be more specific about which datasets you want to include,
for example by searching: "Alasoo_2018.macrophage_IFNg".
You can even search by tissue or condition type
(e.g. |
multithread_tabix |
Multi-thread across within a single tabix file query (good when you have one-several large loci). |
method |
Method for querying eQTL Catalogue:
Note: "tabix" is about ~17x faster than the REST API, but is currently a far less reliable method than the REST API because tabix tends to get blocked by eQTL Catalogue's firewall. See here for more details. |
quant_method |
eQTL Catalogue actually contains more than just eQTL data. For each dataset, the following kinds of QTLs can be queried:
|
split_files |
Save the results as one file per QTL dataset
(with all loci within each file).
If this is set to |
merge_with_gwas |
Whether you want to merge your QTL query results with your GWAS data (convenient, but takes up more storage). |
force_new_subset |
By default, catalogueR will use any
pre-existing files that match your query.
Set |
query_genome |
The genome build of your query coordinates
(e.g. |
conda_env |
Conda environment to search for tabix executable in. |
nThread |
The number of CPU cores you want to use to speed up your queries through parallelization. |
verbose |
Show more ( |
Other eQTL Catalogue:
eQTLcatalogue_fetch()
,
eQTLcatalogue_header
,
eQTLcatalogue_iterate_fetch()
,
eQTLcatalogue_search_metadata()
,
fetch_restAPI()
,
fetch_tabix()
,
merge_gwas_qtl()
,
meta
sumstats_paths <- echodata::get_Nalls2019_loci(limit_snps = 5) GWAS.QTL <- catalogueR::eQTLcatalogue_query( sumstats_paths = sumstats_paths$BST1, qtl_search = "Alasoo_2018.macrophage_naive")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.