is_study_id: Is a string a GWAS Catalog study accession ID?

View source: R/parse-utils.R

is_study_idR Documentation

Is a string a GWAS Catalog study accession ID?

Description

Find which strings are valid GWAS Catalog study accession IDs (returns TRUE). Study accession IDs are tested against the following regular expression: ^GCST\\d+$.

Usage

is_study_id(str, convert_NA_to_FALSE = TRUE)

Arguments

str

A character vector of strings.

convert_NA_to_FALSE

Whether to treat NA as NA (convert_NA_to_FALSE = FALSE) or whether to return FALSE when an NA is found (convert_NA_to_FALSE = TRUE).

Value

A logical vector.


ramiromagno/gwasrapidd documentation built on Jan. 3, 2024, 10:21 p.m.