writeFileInfoJson: (internal) Write file info json

Description Usage Arguments Value Methods (by class) Examples

Description

The method takes the attribute set of a phenotype file, converts it to a data frame, and saves it a json file, which is composed through composeFileInfoJson. (Developer's notes: This function only appends a new item to the existing json file. It does not deal with replacing existing items. That is because the existing json file (pht_file_info_indiv.json) is removed and recreated every time when it is called by recordPrjFileInfo.

Usage

1
2
3
4
writeFileInfoJson(object, dbgapFile)

## S4 method for signature 'Commons'
writeFileInfoJson(object, dbgapFile)

Arguments

object

Commons class object

dbgapFile

a character string. Decrypted dbGaP phenotype file name with path.

Value

TRUE a logical value. TRUE if json file is written successfully. FALSE if not.

Methods (by class)

Examples

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

c <- Commons()
file = '/home/foo/data/phs000429.v1.pht002481.v1.p1.c1.areds_data_final_11.EDO.txt.gz' 
writeFileInfoJson(c, dbgapFile = file) 

## End(Not run)

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