Description Usage Arguments Value Methods (by class) Examples
The method parses the data dictionary XML files of a specific or all studies available under the project directory. The parsed values from one study are merged and saved in files of three different formats (rds, csv, and json). Before calling the function, the data dictionary files of the study should be made available in the data_dic sub-directory under the project directory. Checkout the searchCopyPhenoFiles
function for how to move the files to the directory if not. The method is no longer needed since the data dictionary XML files are replaced by the csv format of the data dictionary downloadable from the dbGaP ftp site.
1 2 3 4 5 | parseDataDic(object, ...)
## S4 method for signature 'Commons'
parseDataDic(object, ..., phsAcc = "",
computeType = FALSE)
|
object |
Commons class object. |
... |
There are optional arguments. |
phsAcc |
a character string. The dbGaP study accession. |
computeType |
logical value. (optional) If TRUE, compute data type based on data value and include it in the meta-info file. If FALSE, not compute data type. Note: This step is computationally expensive. Do not use it if it is a large study such as Framingham. |
(invisible) a data frame. The combined data of data dictionary files of all studies.
Commons
: A method of class Commons
1 2 3 4 5 6 7 8 | ## Not run:
c <- Commons()
parseDataDic(c)
# or
parseDataDic(c, phsAcc = 'phs000001.v3.p1')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.