add_dash_one: Add '-01' to gene names lacking gene-level info

View source: R/build_lookup.R

add_dash_oneR Documentation

Add -01 to gene names lacking gene-level info

Description

Some genes just have the IMGT subgroup (e.g. TRBV2) and allele (e.g. *01) designation. The Adaptive format always includes an IMGT gene (e.g. -01) designation, with "-01" as the apparent default. add_dash_one() adds a default gene-level designation if it's missing.

Usage

add_dash_one(gene_str)

Arguments

gene_str

A string, the gene name.

Value

A string, the updated gene name.

Examples

add_dash_one("TRBV2*01")

TCRconvertR documentation built on June 8, 2025, 10:43 a.m.