Learn R Programming

ApplyPolygenicScore (version 4.0.1)

flip.DNA.allele: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab