toUniformat: Creates a Uniformat file from a dataframe

View source: R/toUniformat.R

toUniformatR Documentation

Creates a Uniformat file from a dataframe

Description

Creates a .unif file containing the genetic infomation from a dataframe

Usage

toUniformat(typing, fname=NULL, loci=c('A', 'B', 'C', 'DRB1', 'DQB1', 'DPB1'), dict=NULL)

Arguments

typing

a dataframe with first column [IND] the identifiers and the allele information in paired locus columns (Locus_1, Locus_2); unknown alleles should be [NA]

fname

an optional filename to save the output; if [NULL]the output will be returned instead

loci

the loci to be exported in the Uniformat file

dict

the list dictionary containing the correspondence of ambiguous alleles

Value

res Uniformat formatted data

Author(s)

William Lemieux william.lemieux@hema-quebec.qc.ca


WLemieux03/uniffstat documentation built on May 3, 2022, 3:03 p.m.