parseIdsFromStAcc: Parse ids from dbGaP study accession

Description Usage Arguments Value Methods (by class) Examples

Description

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

Usage

1
2
3
4
parseIdsFromStAcc(object, phsAcc)

## S4 method for signature 'Commons'
parseIdsFromStAcc(object, phsAcc)

Arguments

object

Commons class object.

phsAcc

a character string. A dbGaP study accession with or without the p# (participant-set number), e.g. phs000001.v3.p1 or phs000001.v3.

Value

a named character list. The list of parsed id strings including 'phsAcc' for study accession, 'phsAccNoVer' for the study accession with the v# (version number) removed. 'phsAccId' for study id, and 'phsAccVer' for study version.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

c <- Commons() 
parseIdsFromStAcc(c, phsAcc = 'phs000001.v3.p1')

## End(Not run)

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