parseIdsFromPhvAcc: Parse ids from dbGaP variable accession

Description Usage Arguments Value Methods (by class) Examples

Description

The method parses out id strings from a dbGaP variable accession.

Usage

1
2
3
4
parseIdsFromPhvAcc(object, phvAcc)

## S4 method for signature 'Commons'
parseIdsFromPhvAcc(object, phvAcc)

Arguments

object

Commons class object.

phvAcc

a character string. The dbGaP variable accession with or without the p# (participant-set number), e.g. phv00273621.v1.

Value

a named character list. The list of parsed id strings including 'phvAcc' for dataset acession, 'phvAccNoVer' for the dataset accession with the v# (version number) removed, 'phvAccId' for dataset id, and 'phvAccVer' for variable version.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

c <- Commons()
phvAccIds <- parseIdsFromPhvAcc(c, phvAcc = 'phv00273621.v1.p1')

## End(Not run)

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