pypopHeaders {HLAtools}R Documentation

Convert BIGDAWG File Headers to PyPop Format

Description

Convert the header of a BIGDAWG-formatted data frame into a Python for Population Genomics (PyPop) formatted header.

Usage

pypopHeaders(colHead)

Arguments

colHead

A vector of column names. BIGDAWG format requires that the first two header values are the sample identifier character string and the subject status (0 or 1). All other header values should be paired locus/gene names.

Value

A PyPop-formatted column header vector.

Note

This function returns unique locus names for each column. For example, "A_1" and "A_2" headers will be returned for two "A" locus columns. PyPop configuration (.ini) files allow this format to be customized.

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/

See Also

PyPop Configuration File

Examples

pyHead <- pypopHeaders(colnames(sHLAdata))


[Package HLAtools version 1.1.1 Index]