create_gwas | R Documentation |
Create a gwaswloc object by reading the file at "http://www.ebi.ac.uk/gwas/api/search/downloads/alternative" or by reading a local gwas catalog (if "vargen_dir" specified as a parameter). If "vargen_dir" contains more than one gwas catalog, the user will be prompted to choose one. The function will use the filename to determine the extract date, please have it in the format: \[filename\]_r**YYYYY**-**MM**-**DD**.tsv eg: "gwas_catalog_v1.0.2-associations_e96_r2019-07-30.tsv"
create_gwas(vargen_dir, verbose = FALSE, timeout = 1000)
vargen_dir |
(optional) a path to vargen data directory, created
during |
verbose |
if true, will print progress information (default: FALSE) |
timeout |
the timeout set in options(), reading/downloading files online might fail with the default timeout of 60 seconds. |
a gwaswloc object containing the information from the gwas catalog.
gwas_cat <- create_gwas()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.