variant_name: Extract variant identifiers from strings of the form rs123-G

View source: R/parse-utils.R

variant_nameR Documentation

Extract variant identifiers from strings of the form rs123-G

Description

This function parses strings of the form "rs123-G" and returns the name of the variant; it uses the regex -([ATCG\?]+)?$.

Usage

variant_name(risk_allele_names)

Arguments

risk_allele_names

Value

A character vector of variant names.


gwasrapidd documentation built on Dec. 28, 2022, 2:16 a.m.