Skip to contents

Converts numerical genotype data (0, 1, 2) to actual allele pairs using annotation data.

Usage

genotype2allele(
  genotype_data,
  annotation_data,
  validate_alleles = TRUE,
  verbose = TRUE
)

Arguments

genotype_data

A data frame containing genotype data with probeset_id column

annotation_data

A data frame containing annotation data with Probe.Set.ID, Allele.A, and Allele.B columns

validate_alleles

Logical indicating whether to validate allele assignments

verbose

Logical indicating whether to print validation results

Value

A list containing validation results, converted genotypes

Examples

if (FALSE) { # \dontrun{
results <- genotype2allele(genotype_data, annotation_data)
} # }