Connects to previously created database (currently only a MonetDBLite database created with makeDatabase) and queries specific data from the database. Essentially a wrapper for MonetDBLite query statements, without having to learn SQL query syntax. Users can provide either a vector of rsids to query the database with OR a vector of start/stop positions along a given chromosome. One can also threshold the data with minimum p value, test (additive or other), or phenotype.
1 2 | extractData(dbdir, rsids = NULL, pos = NULL, pvalThresh = 1,
phenotype = "all", test = "all", dbtype = "MonetDB")
|
dbdir |
A string giving the directory (filepath + folder name) of the database to connect to. The file path must be absolute, not relative (eg no "./"). |
rsids |
A vector containing the rsids to query the database. Must provide either rsids or positions, not both! |
pos |
A vector containing three numbers, the chromosome, start and stop positions along that chromosome to query the database. Must provide either rsids or positions, not both! |
pvalThresh |
A number indicating the minimum threshold of pvalues for the data to return, by default all (pvalue = 1). |
phenotype |
A string or vector of strings containing the phenotypes that will be extracted from the data, by default all phenotypes. |
test |
A string or vector of strings containing the tests that will be extracted from the data, by default all tests. |
dbtype |
A string indicating database type. Currently only the default "MonetDB" accepted. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.