formatHead {HLAtools}R Documentation

Format PyPop Data Frame Headers Format the header of a PyPop-formatted data frame.

Description

Format PyPop Data Frame Headers

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))


[Package HLAtools version 1.1.1 Index]