parseDataDic: (internal, deprecated) Parse data dictionary XML files of all...

Description Usage Arguments Value Methods (by class) Examples

Description

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.

Usage

1
2
3
4
5
parseDataDic(object, ...)

## S4 method for signature 'Commons'
parseDataDic(object, ..., phsAcc = "",
  computeType = FALSE)

Arguments

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.

Value

(invisible) a data frame. The combined data of data dictionary files of all studies.

Methods (by class)

Examples

1
2
3
4
5
6
7
8
## Not run: 

c <- Commons()
parseDataDic(c) 
# or
parseDataDic(c, phsAcc = 'phs000001.v3.p1') 

## End(Not run)

jameslhao/dbgapr_dev documentation built on May 8, 2019, 11:03 p.m.