allele_name: Extract allele names from strings of the form rs123-G

View source: R/parse-utils.R

allele_nameR Documentation

Extract allele names from strings of the form rs123-G

Description

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

Usage

allele_name(risk_allele_names)

Arguments

risk_allele_names

Value

A character vector of allele names.


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