View source: R/assess-strand-flip.R
flip.DNA.allele | R Documentation |
Flip single base pair DNA alleles to their reverse complement. INDEL flipping is not supported.
flip.DNA.allele(alleles, return.indels.as.missing = FALSE)
alleles |
A character vector of DNA alleles. |
return.indels.as.missing |
A logical value indicating whether to return NA for INDEL alleles. Default is |
A character vector of flipped DNA alleles. INDEL alleles are returned as is unless return.indels.as.missing
is TRUE
.
alleles <- c('A', 'T', 'C', 'G', 'ATG', NA);
flip.DNA.allele(alleles);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.