flip.DNA.allele {ApplyPolygenicScore}R Documentation

Flip DNA allele

Description

Flip single base pair DNA alleles to their reverse complement. INDEL flipping is not supported.

Usage

flip.DNA.allele(alleles, return.indels.as.missing = FALSE)

Arguments

alleles

A character vector of DNA alleles.

return.indels.as.missing

A logical value indicating whether to return NA for INDEL alleles. Default is FALSE.

Value

A character vector of flipped DNA alleles. INDEL alleles are returned as is unless return.indels.as.missing is TRUE.

Examples

alleles <- c('A', 'T', 'C', 'G', 'ATG', NA);
flip.DNA.allele(alleles);

[Package ApplyPolygenicScore version 3.0.1 Index]