formatHead: Format PyPop Data Frame Headers

View source: R/BDtoPyPop.R

formatHeadR Documentation

Format PyPop Data Frame Headers

Description

Format the header of a PyPop-formatted data frame.

Usage

formatHead(colHead)

Arguments

colHead

A vector of column names. PyPop format requires that paired locus/gene names should end in '_1' and '_2', respectively.

Value

A vector in which the locus names are suffixed with '_1' and '_2'.

Note

This function assumes that the first two elements the 'colHead' vector are not locus/gene names.

References

Lancaster et al. Front Immunol. 2024 Apr 2;15:1378512. https://pubmed.ncbi.nlm.nih.gov/38629078/

Pappas et al. Hum Immunol. 2016 Mar 77(3):283-287. https://pubmed.ncbi.nlm.nih.gov/26708359/

Examples

formatHead(colHead = colnames(sHLAdata))


HLAtools documentation built on June 8, 2025, 12:24 p.m.