pad_single_digit: Add a '0' to single-digit gene-level designation

View source: R/build_lookup.R

pad_single_digitR Documentation

Add a 0 to single-digit gene-level designation

Description

pad_single_digit() takes a gene name and ensures that any single-digit number following a sequence of letters is padded with a leading zero. This is to match the Adaptive format.

Usage

pad_single_digit(gene_str)

Arguments

gene_str

A string, the gene name.

Value

A string, the updated gene name.

Examples

pad_single_digit("TCRBV1-2")

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