parseIdsFromPhtAcc: Parse ids from dbGaP dataset accession

Description Usage Arguments Value Methods (by class) Examples

Description

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

Usage

1
2
3
4
parseIdsFromPhtAcc(object, phtAcc)

## S4 method for signature 'Commons'
parseIdsFromPhtAcc(object, phtAcc)

Arguments

object

Commons class object.

phtAcc

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

Value

a named character list. The list of parsed id strings including 'phtAcc' for dataset acession, 'phtAccNoVer' for the dataset accession with the v# (version number) removed, 'phtAccId' for dataset id, and 'phtAccVer' for dataset version.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

c <- Commons()
parseIdsFromPhtAcc(c, phtAcc = 'pht003718.v1.p1')

## End(Not run)

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