Description Usage Arguments Value Methods (by class) Examples
The method parses out the values from the data dictionary XML files of the given study. The parsed values are merges into a single data frame, which is further saved to files of various 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. In most of cases, this function is called through parseDataDic
.
1 2 3 4 5 | parseDataDicByStudy(object, phsAcc, ...)
## S4 method for signature 'Commons,character'
parseDataDicByStudy(object, phsAcc, ...,
computeType = TRUE)
|
object |
Commons class object. |
phsAcc |
a character string. The dbGaP study accession. |
... |
There are optional arguments. |
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 merged content of the parsed data dictionary files.
object = Commons,phsAcc = character
: A method of class Commons
1 2 3 4 5 6 7 | ## Not run:
c <- Commons()
parseDataDicByStudy(c, phsAcc = 'phs000001.v3.p1')
parseDataDicByStudy(c, phsAcc = 'phs000007.v27')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.