isStudyAcc: (internal) Validate the format of a dbGaP study accession

Description Usage Arguments Value Methods (by class) Examples

Description

The method checks the format of an input string to see if it is a dbGaP accession. The accessions with and without the p# (participant-set number) both are considered to be correct (e.g. phs000001.v3.p1 or phs000001.v3).

Usage

1
2
3
4
isStudyAcc(object, phsAcc)

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

Arguments

object

Commons class object.

phsAcc

a character string. A dbGaP study accession.

Value

a logical value. TRUE if the format matches a dbGaP accession, FALSE if it doesn't match.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

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

## End(Not run)

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