Description Usage Arguments Value Methods (by class) Examples
The method parses the field values of a given data dictionary XML file. It is called through the function "parseDataDicByStudy".
1 2 3 4 5 | dataDicXmlParser(object, xmlFileName, xmlFilePath, phsAcc, ...)
## S4 method for signature 'Commons,character'
dataDicXmlParser(object, xmlFileName, xmlFilePath,
phsAcc, ..., fileInfoDF = data.frame(), computeType = FALSE)
|
object |
Commons class object. |
xmlFileName |
a character string. The name of the data dictionary XML file. |
xmlFilePath |
a character string. The path to the directory where the data dictionary XML file is located. |
phsAcc |
a character string. The dbGaP study accession. |
... |
There are optional arguments. |
fileInfoDF |
a data frame. (optional) The copied file info read from the pht_file_info_indiv.json under the ncbi/dbgapr_conf directory. This is needed when computeType is TRUE. |
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 set TRUE if it is a large study that have a large number of datasets. |
a character string. The path to the resulting rds file of the parsed data dictionary.
object = Commons,xmlFileName = character
: A method of class Commons
1 2 3 4 5 6 7 8 | ## Not run:
c <- Commons()
filename = 'phs000001.v3.pht000001.v2.genspecphenotype.data_dict.xml'
filepath = '/home/foo/my_project/gapwork/data/phs000001/phs000001.v3/data_dict'
dataDicXmlParser(c, xmlFileName=filename, xmlFilePath=filepath, 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.